protocol-rack 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c27e5bf1536d42121ad0ce4dc5a853f0dc2ecb742413bb84b96165518202a0ae
4
- data.tar.gz: 4e6e3713f8d48d5ef5595e9f9472861593330e5551f106366d5a6c7cc7b6e908
3
+ metadata.gz: e1d01285c37f91d697e015646a6ed3efecfe08c8db97d94c636e27cec44497be
4
+ data.tar.gz: 1f494626f6f7fb446dc23e37eadcc0e8fae493c2701dabc796d108342b8dba58
5
5
  SHA512:
6
- metadata.gz: 2027afc339a462587ac9c31143ad33b6d9fca2c3432068fc7369182ecf7f1111b171a33b1b7ae4600e303e8f6a59ab12369480433d8e38acc4bc3e04ed8ca3d1
7
- data.tar.gz: c9e376f09aaf01e32b0cc2bf395d729e1043ecc14916850bc719d8d5709b8ca148e29203f8339de2899e2466dbcb5ab918f39055ae21bd63fb1595d95a9f93b8
6
+ metadata.gz: 7dc7cc8c0df3b688c30ee1b13a6e2178a84a0ea5bfc66e6e50af9b36c239224c94abe11237d2f5d6310df75eb08a56ff56787c39cb33aebd28c85808a6cadeea
7
+ data.tar.gz: c9865d6691c36ebc6d8c5d3614317256831b55718d6655f90cb0843c60bed0cc75e02c96dfdf6005c0637c3cd65c70368dbd69091df41d026e372c41cba38a4b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -105,7 +105,8 @@ module Protocol
105
105
  env[CGI::CONTENT_LENGTH] = length.to_s
106
106
  end
107
107
 
108
- self.unwrap_headers(request.headers, env)
108
+ # We ignore trailers for the purpose of constructing the rack environment:
109
+ self.unwrap_headers(request.headers.header, env)
109
110
 
110
111
  # For the sake of compatibility, we set the `HTTP_UPGRADE` header to the requested protocol.
111
112
  if protocol = request.protocol and request.version.start_with?("HTTP/1")
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module Rack
8
- VERSION = "0.20.0"
8
+ VERSION = "0.21.0"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -21,6 +21,10 @@ Please see the [project documentation](https://socketry.github.io/protocol-rack/
21
21
 
22
22
  Please see the [project releases](https://socketry.github.io/protocol-rack/releases/index) for all releases.
23
23
 
24
+ ### v0.21.0
25
+
26
+ - For the purpose of constructing the rack request environment, trailers are ignored.
27
+
24
28
  ### v0.20.0
25
29
 
26
30
  - Convert header values into strings using `to_s` so that `Headers#each` can yield non-string values if necessary.
@@ -60,10 +64,6 @@ Please see the [project releases](https://socketry.github.io/protocol-rack/relea
60
64
 
61
65
  - Ignore (and close) response bodies for status codes that don't allow them.
62
66
 
63
- ### v0.11.2
64
-
65
- - Stop setting `env["SERVER_PORT"]` to `nil` if not present.
66
-
67
67
  ## Contributing
68
68
 
69
69
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.21.0
4
+
5
+ - For the purpose of constructing the rack request environment, trailers are ignored.
6
+
3
7
  ## v0.20.0
4
8
 
5
9
  - Convert header values into strings using `to_s` so that `Headers#each` can yield non-string values if necessary.
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.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -60,14 +60,14 @@ dependencies:
60
60
  requirements:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
- version: '0.43'
63
+ version: '0.58'
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
- version: '0.43'
70
+ version: '0.58'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rack
73
73
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file