We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f85eb48 commit 1cbc61fCopy full SHA for 1cbc61f
lib/async/websocket/adapters/rails.rb
@@ -11,15 +11,10 @@ module Adapters
11
module Rails
12
def self.open(request, **options, &block)
13
if response = Rack.open(request.env, **options, &block)
14
- response[1]['rack.hijack'] = lambda do |stream|
15
- response[2].call(stream)
16
- end
17
-
18
- # Close the response to prevent Rails from... trying to render a view?
19
- return ::ActionDispatch::Response.new(response[0], response[1], nil).tap(&:close)
+ ::Rack::Response[*response]
+ else
+ ::ActionDispatch::Response.new(404, [], [])
20
end
21
22
- return ::ActionDispatch::Response.new(404, [], [])
23
24
25
0 commit comments