Skip to content

Commit

Permalink
Fix arguments to 404 response (#63)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emlove authored Dec 9, 2023
1 parent e5a4dad commit 8417b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async/websocket/adapters/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.open(request, **options, &block)
if response = Rack.open(request.env, **options, &block)
::Rack::Response[*response]
else
::ActionDispatch::Response.new(404, [], [])
::ActionDispatch::Response.new(404)
end
end
end
Expand Down

0 comments on commit 8417b1e

Please sign in to comment.