Skip to content

Commit

Permalink
Flush stream and then return io (better compatibility).
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jun 25, 2018
1 parent b258997 commit 67f89f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/async/http/protocol/http11.rb
Expand Up @@ -88,7 +88,9 @@ def persistent?(headers)
def hijack
@persistent = false

return @stream
@stream.flush

return @stream.io
end

class Request < HTTP::Request
Expand All @@ -105,7 +107,7 @@ def hijack?
end

def hijack
protocol.hijack
@protocol.hijack
end
end

Expand Down

0 comments on commit 67f89f9

Please sign in to comment.