1
0
Fork 0
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:
Nate Berkopec 2019-08-06 16:55:40 -07:00
parent c6dab0ab6d
commit ab4e1babf3
No known key found for this signature in database
GPG key ID: BDD7A4B8E43906A6
2 changed files with 13 additions and 0 deletions

1
config.ru Normal file
View file

@ -0,0 +1 @@
run(proc{|env| [200, {}, [env['HTTP_FOO'].inspect, "\n"]]})

View file

@ -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