diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-05 04:58:57 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-05 04:58:57 +0000 |
commit | 0d375e732d83c96451a671f7eb9522c773cd3038 (patch) | |
tree | 310b9e6880e9b174af4c97b801193b01857ce1ba /test | |
parent | 76731871e70398afbd044e16e9cf4151b471841b (diff) | |
download | ruby-0d375e732d83c96451a671f7eb9522c773cd3038.tar.gz |
* lib/net/http.rb (Net::HTTP#get): A header hash given should not
be modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/net/http/test_http.rb | 4 |
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) |