twirp-on-rails 1.0.1.pre → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twirp/rails/rack/conditional_post.rb +2 -2
- data/lib/twirp/rails/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: 97395472e03e70358a2a271d158f7661df878b3b9ada26d79b220975065d4b35
|
4
|
+
data.tar.gz: b4188b09886154375a8f7e931d4d363c27bdf40a000044e73960e92266ccf2b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0729dc21f25c3c40eda3fb080a70a67c67d3864a3be85a740e27b9e41e2d9d8548ccec114ebe42b923f240a33234090111ea00ce00dfa8729ecf43c546707002'
|
7
|
+
data.tar.gz: 2d4d1bc20c93b7860356d431520ef7e5468ab3b1c45134ea63100bee64bf204517aefa768940c1429f105baadb8bf23eaa616e5e0d6b37cda8d8f1cf8cbdcd49
|
@@ -32,7 +32,7 @@ module Twirp
|
|
32
32
|
when "POST"
|
33
33
|
status, headers, body = response = @app.call(env)
|
34
34
|
# Rack 3 settles on only allowing lowercase headers
|
35
|
-
if Rack.release < "3.0"
|
35
|
+
if ::Rack.release < "3.0"
|
36
36
|
headers = ::Rack::Utils::HeaderHash[headers]
|
37
37
|
end
|
38
38
|
|
@@ -40,7 +40,7 @@ module Twirp
|
|
40
40
|
response[0] = 304
|
41
41
|
headers.delete(::Rack::CONTENT_TYPE)
|
42
42
|
headers.delete(::Rack::CONTENT_LENGTH)
|
43
|
-
response[2] = Rack::BodyProxy.new([]) do
|
43
|
+
response[2] = ::Rack::BodyProxy.new([]) do
|
44
44
|
body.close if body.respond_to?(:close)
|
45
45
|
end
|
46
46
|
end
|
data/lib/twirp/rails/version.rb
CHANGED