lamby 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/lamby/rack.rb +4 -4
- data/lib/lamby/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: 4327446677f04fd00f4454f0a9fe8040a4787ee1ac08b5fa10a70b59936caffa
|
4
|
+
data.tar.gz: 124d1a0707da1f693c551e4a7d5cdf90992659a010adb7c45d9fedfcdfd15877
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04c1053e4094dcc89400420d2f1904eba1e1ed27a600e4f8351e15b2f2387393c430f0cbef79ec3eca2bf31c3ef7a1ab5e89699104fdb3ad251ad7c7bdb1e040
|
7
|
+
data.tar.gz: fa764371709754f96e5646263fc2f4e36a1a83713c9dd353a35501a43bd2dfa62f77bb49357f0f260bd248c77dfdb5a3ecee0d5672417eaf7d43d15bfee1db5d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -111,4 +111,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/custom
|
|
111
111
|
|
112
112
|
## Code of Conduct
|
113
113
|
|
114
|
-
Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
114
|
+
Everyone interacting in the Lamby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/customink/lamby/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/lamby/rack.rb
CHANGED
@@ -40,8 +40,8 @@ module Lamby
|
|
40
40
|
}.tap do |env|
|
41
41
|
ct = content_type
|
42
42
|
cl = content_length
|
43
|
-
env[
|
44
|
-
env[
|
43
|
+
env['CONTENT_TYPE'] = ct if ct
|
44
|
+
env['CONTENT_LENGTH'] = cl if cl
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -54,12 +54,12 @@ module Lamby
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def content_type
|
57
|
-
headers.delete('Content-Type') || headers.delete('content-type')
|
57
|
+
headers.delete('Content-Type') || headers.delete('content-type') || headers.get_header('CONTENT_TYPE')
|
58
58
|
end
|
59
59
|
|
60
60
|
def content_length
|
61
61
|
bytesize = body.bytesize.to_s if body
|
62
|
-
headers.delete('Content-Length') || headers.delete('content-length') || bytesize
|
62
|
+
headers.delete('Content-Length') || headers.delete('content-length') || headers.delete('CONTENT_LENGTH') || bytesize
|
63
63
|
end
|
64
64
|
|
65
65
|
def body
|
data/lib/lamby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lamby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|