summaryrefslogtreecommitdiff
path: root/test
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
commit554c879f1f0138a3981b9245b397a1a969461c7b (patch)
tree4a534146320afd168a4600c91e9ceb06316560e3 /test
parent8686ce2b42264a97d203fb7e638f549ed68a8934 (diff)
* 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')
-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|