protocol-rack 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 698f8f014b44c23f6f975059abff65a0baa7c237c5e6e396fac1a3da3ad47a9d
4
- data.tar.gz: b90f97e4ead49e5741505f08781f8684dc38ed9f3307aa94535cf734549a9aef
3
+ metadata.gz: 7aabc09a18a32e49d2a964c0b736d1e8613532d21a814dd1301be60a4963c057
4
+ data.tar.gz: b229ee85cca50e1803421ef4cf831b15258210d93d1613ef3bd864861a5762d9
5
5
  SHA512:
6
- metadata.gz: ca48e4164ec6e0100add61bccdde2022d4eb7e3913481e8f688baab5799bbc2266a1188d9f0f1813af259ec88548f814e25e0ec4f0ef159421103365766857e2
7
- data.tar.gz: b8e71d453c0ff35b2542c9483cd1fd0d17216934a4f4dda27d2ab6c2b516a65edfa7d7a9dcd00775cdbe4e85cbe16973ba380723e04c80734070ca8196136b82
6
+ metadata.gz: 2989f0116da4d5c66cc776f9fda9cc6e67e92744af61d7ab8cb326611829dd372bf10b8610cc3f61dc88e8d8989222a02adb787a3bd763986c057e0b213203ae
7
+ data.tar.gz: b0a371f9ec89ed91f2745a7590a601ddb62591d3e14161d16c24881aff90c08e43d46a4ca881916204e1819d47a4f3a5ab24620cc333a807c1b8a81a5a9806fc
checksums.yaml.gz.sig CHANGED
Binary file
@@ -73,6 +73,10 @@ module Protocol
73
73
  env[CGI::HTTP_UPGRADE] = Array(protocol).join(",")
74
74
  end
75
75
 
76
+ if request.respond_to?(:hijack?) and request.hijack?
77
+ env[RACK_HIJACK] = proc{request.hijack!.io.dup}
78
+ end
79
+
76
80
  # HTTP/2 prefers `:authority` over `host`, so we do this for backwards compatibility.
77
81
  env[CGI::HTTP_HOST] ||= request.authority
78
82
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module Rack
8
- VERSION = "0.3.1"
8
+ VERSION = "0.4.0"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file