From 7aa913d0b968d87f67311088132e44cf294ec435 Mon Sep 17 00:00:00 2001 From: Jackson Ray Hamilton Date: Sat, 1 Apr 2017 10:28:05 -0700 Subject: [PATCH] Workaround a Puma bug. --- test/failures_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/failures_test.rb b/test/failures_test.rb index 698fd5a..f394526 100644 --- a/test/failures_test.rb +++ b/test/failures_test.rb @@ -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