protocol-rack 0.10.0 → 0.10.1

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: 0af7fbf35d4f83edafd70b0e20722bab2e87a17be42847ba3deb15b65c226f54
4
- data.tar.gz: 61086ed511f8f01457daefe952847124748177b0137689772afe73104fa525e6
3
+ metadata.gz: 10a0c5ad45e5da6659b4b3bef87ba9f2161727e4e465694421bf9d3b1ba3d37a
4
+ data.tar.gz: 7f87087ac4cec6a2d58c3b0a30066f00b3b43e14c513813aad780c581dec3651
5
5
  SHA512:
6
- metadata.gz: 87ea16543d6d9ca388911a4bd9af7e59d5ed0f46f8b20085ba305881a8efa4568998941bc3ffcf9ab7de71e6f39b1340db3fa0d605ef028cbce9be66162ad104
7
- data.tar.gz: 2e5ca7f57c8b66c04a1ecfdd8db0c15009f769e54521c29c2fae220f7c915872b39bc8acdcc5eb186a9655d96b40567b73dd312bf1626f3a15569ab1e182ac4b
6
+ metadata.gz: aec78a45bb3c5287841286308a61063910a26384768da2f9aba370b46c9604321253491d488b05aecffa57e194955dc6910a1b2af5bf46e550bf23a03dd0fc0c
7
+ data.tar.gz: c83dcd78e675d363d40002a666642a1e4a0a897ebf70815ee9eab0523da6845ea65cff5f1bfef20c4e9f703e1409076a471a26d04e85273488164c0638c065aa
checksums.yaml.gz.sig CHANGED
Binary file
@@ -89,6 +89,13 @@ module Protocol
89
89
  if @body
90
90
  # User's may forget to call #close...
91
91
  if chunk = @body.read
92
+ # If the user reads exactly the content length, we close the stream automatically:
93
+ # https://github.com/socketry/async-http/issues/183
94
+ if @body.empty?
95
+ @body.close
96
+ @body = nil
97
+ end
98
+
92
99
  return chunk
93
100
  else
94
101
  # So if we are at the end of the stream, we close it automatically:
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module Rack
8
- VERSION = "0.10.0"
8
+ VERSION = "0.10.1"
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2024-09-24 00:00:00.000000000 Z
41
+ date: 2024-10-11 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: protocol-http
metadata.gz.sig CHANGED
Binary file