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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40ca307310677286db9dee58417a0c6fa6517e9e96b196cd7121ba65ca780264
4
- data.tar.gz: f8775ac6c22599741d7a6ff165ab9e6ec629179ccac22710837153f43adf4607
3
+ metadata.gz: d92cc04b22fe527bdbc9e9a09f08fa7ac0497edd888f63feaac59eabdb3758eb
4
+ data.tar.gz: 32442bf8245dbe01c98f4e21168ffe34f7b6b85e7f8418915e5c17af0694c7b4
5
5
  SHA512:
6
- metadata.gz: a9ddd07660396c06bdba09df2715bc76465f6623a6306c5f4d5d9a13c6e252c8bfd359f8024a1d2d2c43a9c7332afc1f10b3ba5db0e1c2c27617a3d3ed585881
7
- data.tar.gz: e4a2abe530fa6b23bf5c17b608aa4168f030ef01d9b696879f6a0988fb12250607dbac3dd3af359fcc5a3988fd0129e1adacd3f0afd2a2de82fecee3d373b5e8
6
+ metadata.gz: e45dc7a58552b2f9612d8f32de3fcc2111696db8e31dbc96219703caa8484bd31ab29a94fedb4f48eae00edf02eba3bf10e835381d69459fcd83f540abfbd1c2
7
+ data.tar.gz: a57c0a05b04a9e334da771445ee08a12d5ad4381365156e481c87af3a90fdc99d03d6e8f3d3b9497c5612954c745d0d6021e67f365a6c2c934f07e5bde7fd69a
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Hanami
4
4
  module Lambda
5
- VERSION = "0.2.1"
5
+ VERSION = "0.2.2"
6
6
  end
7
7
  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.1
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-29 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk