apigatewayv2_rack 0.4.0 → 0.5.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/apigatewayv2_rack/middlewares/cloudfront_xff.rb +0 -2
- data/lib/apigatewayv2_rack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df1585a24c017df86e5017c155e55c48247a68a5f09810f03802df9879f5d4cf
|
|
4
|
+
data.tar.gz: c03edb93248873f156dc18ebd83a1ed6186d21f47e48ee7c7a0a9bfa283098b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b2bfb43a941f26b4b2f5fd3c35041f6a7dfe501c45433987669ccaacfec698e6900f6fbbc2bc4f3851baedff84d2b3e7ee16dd1a942c0bb6a2c29cfdf171a47
|
|
7
|
+
data.tar.gz: '0867e53a9dd5c0e4fe23941b325afdcdac28c7cbea5c5e3e0637973ca8e115abe5dfc04e80cda744b4e78ba65429f8487a6a99e401030ab2f782884278f74896'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [0.5.0] - 2026-06-02
|
|
2
|
+
|
|
3
|
+
- __Breaking__ Fixes CloudfrontXff middleware incorrectly sets `x-forwarded-port` header. It is expected to be a server port instead of client port in defacto standard.
|
|
4
|
+
|
|
1
5
|
## [0.4.0] - 2025-11-10
|
|
2
6
|
|
|
3
7
|
- Exclude integration test, GitHub workflows and Gemfile to be included in a released gem package. https://github.com/sorah/apigatewayv2_rack/pull/6
|
|
@@ -25,9 +25,7 @@ module Apigatewayv2Rack
|
|
|
25
25
|
|
|
26
26
|
if addr && port
|
|
27
27
|
env['HTTP_X_APIGATEWAYV2RACK_ORIG_X_FORWARDED_FOR'] = env['HTTP_X_FORWARDED_FOR'] if env['HTTP_X_FORWARDED_FOR']
|
|
28
|
-
env['HTTP_X_APIGATEWAYV2RACK_ORIG_X_FORWARDED_PORT'] = env['HTTP_X_FORWARDED_PORT'] if env['HTTP_X_FORWARDED_PORT']
|
|
29
28
|
env['HTTP_X_FORWARDED_FOR'] = addr
|
|
30
|
-
env['HTTP_X_FORWARDED_PORT'] = port
|
|
31
29
|
|
|
32
30
|
if @replace_remote_addr_with
|
|
33
31
|
env['HTTP_X_APIGATEWAYV2RACK_ORIG_REMOTE_ADDR'] = env['REMOTE_ADDR'] if env['REMOTE_ADDR']
|