rack-proxy 2.0.1 → 2.0.2

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: 12583aa295312c50b4133259be96749c8cb515eca735f3df803008970f5f941a
4
- data.tar.gz: 765f25cc8fef13acb7b0276ed7d193d35c3ad91acc00074b923b2f1558e384d8
3
+ metadata.gz: 88f01b57aeb1ef7de9f30b8b942b5c9a9721e67ebff64ff485e3a20fc00a3486
4
+ data.tar.gz: 850185d8f6c04de898dbab0e6c7b915de8b4947c1390ebc211d84986518982d3
5
5
  SHA512:
6
- metadata.gz: 2f6467276179125820219ff0f553f216dced29a36d0a14e60d03ab5e86e49b06ab601f47f25bbc5aa180cb11be9358a3689137fbe7ff6c6190626d171b80ab92
7
- data.tar.gz: e8f825b48982e015dedb923dc6bd21c7d7144ec991b9c8e24a65c2d9755daec0bc86df9519c045c9d8689bb0b1c4693966b609a66d6958d77edfd1b4fe016227
6
+ metadata.gz: 64d65f0c275b8ae4f2239c47ced8ca7ccb60d703d4d09041ab8b5b2cdb0dda780d9ead1763e9817deb52a34e5f858ff35933dec8251518ce3b78a722e51983d7
7
+ data.tar.gz: fa4951bd080321917afb00da47e5884fb4454b25d63f8579c6aebb787f7b62d395b6b0b0c498d4262755ea6720139d9206e40ec16d6d6a3cd1f906bfe1731983
data/CHANGELOG.md CHANGED
@@ -8,6 +8,14 @@ follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
8
 
9
9
  Nothing yet.
10
10
 
11
+ ## [2.0.2] - 2026-11-19
12
+
13
+ ### Fixed
14
+
15
+ - The bounded request body stream no longer passes a `nil` output buffer on to
16
+ `rack.input#read`, which Rack 3's `Rack::Lint` rejects, when it is read
17
+ without one. (#148)
18
+
11
19
  ## [2.0.1] - 2026-09-16
12
20
 
13
21
  ### Fixed
@@ -247,7 +255,8 @@ or a compatible fix. See the README's "Upgrading" section for migration steps.
247
255
 
248
256
  Older releases (≤ 0.7.8) predate this changelog; see the git history and tags.
249
257
 
250
- [Unreleased]: https://github.com/ncr/rack-proxy/compare/v2.0.1...HEAD
258
+ [Unreleased]: https://github.com/ncr/rack-proxy/compare/v2.0.2...HEAD
259
+ [2.0.2]: https://github.com/ncr/rack-proxy/compare/v2.0.1...v2.0.2
251
260
  [2.0.1]: https://github.com/ncr/rack-proxy/compare/v2.0.0...v2.0.1
252
261
  [2.0.0]: https://github.com/ncr/rack-proxy/compare/v1.0.2...v2.0.0
253
262
  [1.0.2]: https://github.com/ncr/rack-proxy/compare/v1.0.1...v1.0.2
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rack
4
4
  class Proxy
5
- VERSION = "2.0.1"
5
+ VERSION = "2.0.2"
6
6
  end
7
7
  end
data/lib/rack/proxy.rb CHANGED
@@ -54,6 +54,8 @@ module Rack
54
54
  return nil
55
55
  end
56
56
 
57
+ # a read buffer cannot be nil; make a new empty buffer
58
+ buffer ||= +"".b
57
59
  data = @input.read([length, @remaining].min, buffer)
58
60
  raise InvalidRequest, "request body is shorter than Content-Length" if data.nil? || data.empty?
59
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacek Becela
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-16 00:00:00.000000000 Z
11
+ date: 2026-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack