hanami-lambda 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hanami/lambda/rack.rb +4 -1
- data/lib/hanami/lambda/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d92cc04b22fe527bdbc9e9a09f08fa7ac0497edd888f63feaac59eabdb3758eb
|
4
|
+
data.tar.gz: 32442bf8245dbe01c98f4e21168ffe34f7b6b85e7f8418915e5c17af0694c7b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e45dc7a58552b2f9612d8f32de3fcc2111696db8e31dbc96219703caa8484bd31ab29a94fedb4f48eae00edf02eba3bf10e835381d69459fcd83f540abfbd1c2
|
7
|
+
data.tar.gz: a57c0a05b04a9e334da771445ee08a12d5ad4381365156e481c87af3a90fdc99d03d6e8f3d3b9497c5612954c745d0d6021e67f365a6c2c934f07e5bde7fd69a
|
data/lib/hanami/lambda/rack.rb
CHANGED
@@ -47,7 +47,10 @@ module Hanami
|
|
47
47
|
::Rack::RACK_INPUT => StringIO.new(event["body"] || ""),
|
48
48
|
::Hanami::Lambda::LAMBDA_EVENT => event,
|
49
49
|
::Hanami::Lambda::LAMBDA_CONTEXT => context
|
50
|
-
}
|
50
|
+
}.tap do |env|
|
51
|
+
content_type = event.dig("headers", "Content-Type")
|
52
|
+
env["CONTENT_TYPE"] = content_type if content_type
|
53
|
+
end
|
51
54
|
end
|
52
55
|
end
|
53
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aotokitsuruya
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|