Skip to content

Commit 8417b1e

Browse files
authored
Fix arguments to 404 response (#63)
The second argument is the headers field, and it's actually a hash type. Sending an empty array breaks parsing further down the line when trying to look up hash values by key.
1 parent e5a4dad commit 8417b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/async/websocket/adapters/rails.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def self.open(request, **options, &block)
1313
if response = Rack.open(request.env, **options, &block)
1414
::Rack::Response[*response]
1515
else
16-
::ActionDispatch::Response.new(404, [], [])
16+
::ActionDispatch::Response.new(404)
1717
end
1818
end
1919
end

0 commit comments

Comments
 (0)