We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee60354 commit 9fac2c3Copy full SHA for 9fac2c3
test/webrick/test_httprequest.rb
@@ -19,12 +19,12 @@ def test_simple_request
19
end
20
21
def test_parse_09
22
- msg = <<-_end_of_message_
+ msg = <<~HTTP.gsub("\n", "\r\n")
23
GET /
24
foobar # HTTP/0.9 request don't have header nor entity body.
25
- _end_of_message_
+ HTTP
26
req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP)
27
- req.parse(StringIO.new(msg.gsub(/^ {6}/, "").gsub("\n", "\r\n")))
+ req.parse(StringIO.new(msg))
28
assert_equal("GET", req.request_method)
29
assert_equal("/", req.unparsed_uri)
30
assert_equal(WEBrick::HTTPVersion.new("0.9"), req.http_version)
0 commit comments