summaryrefslogtreecommitdiff
path: root/test/net/http/utils.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2020-03-11 14:26:22 +0900
committer<[email protected]>2020-03-10 22:26:22 -0700
commite0512b29aa47d4b79a27b0c0356bf47ec9b4e072 ()
tree2a2cf5d3a538c8c685cfc3312f65a8216bd8993e /test/net/http/utils.rb
parent12009fb3b984faf346250ee7723ecccf56622ce0 (diff)
Let Net::HTTP.get take request headers (#2957)
* Let Net::HTTP.get take request headers * Add more test cases for no header usages * Add examples with request headers * Add a NEWS entry [ci skip] [Feature #16686]
Notes: Merged-By: k0kubun <[email protected]>
-rw-r--r--test/net/http/utils.rb6
1 files changed, 5 insertions, 1 deletions
@@ -81,7 +81,11 @@ module TestNetHTTPUtils
end
def do_GET(req, res)
- res['Content-Type'] = $test_net_http_data_type
res.body = $test_net_http_data
res.chunked = @chunked
end