aboutsummaryrefslogtreecommitdiffstats
path: root/test/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-06 00:01:20 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-06 00:01:20 +0000
commit0619e732023fb3a409949b142b0f83cf73af01ef (patch)
tree4a534146320afd168a4600c91e9ceb06316560e3 /test/net
parent9c562965116f89cb53490bed58725baa9091cedd (diff)
downloadruby-0619e732023fb3a409949b142b0f83cf73af01ef.tar.gz
* lib/net/http/generic_rquest.rb (write_header): A Request-Line must
not contain CR or LF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_http.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 493823549a..697296629c 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -315,6 +315,14 @@ module TestNetHTTP_version_1_1_methods
assert_equal $test_net_http_data, res.body
end
+ def test_get__crlf
+ start {|http|
+ assert_raise(ArgumentError) do
+ http.get("\r")
+ end
+ }
+ end
+
def test_get2
start {|http|
http.get2('/') {|res|