mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Failing/skipped test for #1890
This commit is contained in:
parent
c6dab0ab6d
commit
ab4e1babf3
2 changed files with 13 additions and 0 deletions
1
config.ru
Normal file
1
config.ru
Normal file
|
@ -0,0 +1 @@
|
|||
run(proc{|env| [200, {}, [env['HTTP_FOO'].inspect, "\n"]]})
|
|
@ -2,6 +2,7 @@
|
|||
# Copyright (c) 2005 Zed A. Shaw
|
||||
|
||||
require_relative "helper"
|
||||
require "digest"
|
||||
|
||||
require "puma/puma_http11"
|
||||
|
||||
|
@ -181,6 +182,17 @@ class Http11ParserTest < Minitest::Test
|
|||
parser.reset
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# https://github.com/puma/puma/issues/1890
|
||||
def test_trims_whitespace_from_headers
|
||||
skip("Known failure, see issue 1890 on GitHub")
|
||||
parser = Puma::HttpParser.new
|
||||
req = {}
|
||||
http = "GET / HTTP/1.1\r\nX-Strip-Me: Strip This \r\n\r\n"
|
||||
|
||||
nread = parser.execute(req, http, 0)
|
||||
|
||||
assert_equal "Strip This", req["HTTP_X_STRIP_ME"]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue