aboutsummaryrefslogtreecommitdiffstats
path: root/test/net/http/test_http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/http/test_http.rb')
-rw-r--r--test/net/http/test_http.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 5e5cdab9ff..9833a8e9e5 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -42,6 +42,10 @@ module TestNetHTTP_version_1_1_methods
assert_equal $test_net_http_data_type, res['Content-Type']
assert_equal $test_net_http_data.size, res.body.size
assert_equal $test_net_http_data, res.body
+
+ assert_nothing_raised {
+ res, body = http.get('/', { 'User-Agent' => 'test' }.freeze)
+ }
end
def _test_get__iter(http)