apigatewayv2_rack 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/apigatewayv2_rack/response.rb +3 -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: 6c08dab51de986cc6c713e6cfbe9eb1ba9d5c9db15bb90dbd61e917463718f7e
|
4
|
+
data.tar.gz: 55e1ddb223d2b4c3bd9b01c1770a518b032f8b97d214a750a7fd2d2cd9ca46fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aa24b808539e4426bf721c3ef8cbface7f018d631a7b4d4e2fd9f76a9fef51f1be782010001e02932eae44b3240c2d2a36de13bf91453c1d6fcc97679774402
|
7
|
+
data.tar.gz: fe8a6ac040b09340eee4c41f7c477cea1e7455333f664eb8ee81028b45f6a6c23bbe040053e5528f93072e57bcb12f7a5a087d532cd8b1e777205356c8fabe6d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -33,8 +33,9 @@ module Apigatewayv2Rack
|
|
33
33
|
|
34
34
|
private def consume_body
|
35
35
|
case
|
36
|
-
when body
|
37
|
-
|
36
|
+
# FIXME: Rack::CommonLogger uses Rack::BodyProxy, which performs logging when body is closed, is not compatible with #to_ary on Rack 3 specification
|
37
|
+
# when body.respond_to?(:to_ary)
|
38
|
+
# body.to_ary.join
|
38
39
|
when body.respond_to?(:each)
|
39
40
|
buf = String.new
|
40
41
|
body.each { |chunk| buf << chunk.b }
|