Skip to content

Commit

Permalink
Workaround a Puma bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonrayhamilton committed Apr 1, 2017
1 parent 8fbd835 commit 7aa913d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/failures_test.rb
Expand Up @@ -21,7 +21,9 @@ def test_rackup_config_runs_nothing

def test_host_header_is_missing_but_found_in_uri
TCPSocket.open("localhost", 20557) do |socket|
socket.write("GET http://example.dev:20557/ HTTP/1.1\r\n\r\n")
# The empty query string is a workaround for the bug fixed here:
# https://github.com/puma/puma/pull/1259
socket.write("GET http://example.dev:20557/? HTTP/1.1\r\n\r\n")
assert_equal "HTTP/1.1 200 OK\r\n", socket.gets
end
end
Expand Down

0 comments on commit 7aa913d

Please sign in to comment.