Skip to content

Commit 51f686d

Browse files
authored
Don't dup hijacked io - it's not possible with SSLSocket. (#30)
1 parent 5888e66 commit 51f686d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/protocol/rack/adapter/generic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def unwrap_request(request, env)
114114

115115
if request.respond_to?(:hijack?) and request.hijack?
116116
env[RACK_IS_HIJACK] = true
117-
env[RACK_HIJACK] = proc{request.hijack!.io.dup}
117+
env[RACK_HIJACK] = proc{request.hijack!.io}
118118
end
119119

120120
# HTTP/2 prefers `:authority` over `host`, so we do this for backwards compatibility.

0 commit comments

Comments
 (0)