falcon 0.18.9 → 0.18.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/falcon/adapters/rack.rb +3 -0
- data/lib/falcon/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: 5141538bd61caee367501c956197f2569a3489629fd84933a7d3f5a10d6f9b6c
|
4
|
+
data.tar.gz: ad736ac84ca42b076f68e13c442ffd5961362f7b7ccebeb228940455a55dff06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 381a250a37641a2ecb9f92d947ea94a090302932ad41166a6ef7ec63f3013ca3e1f9cbbc15a50b034fc7d7bac61b7f4f22c300d5d5fb730e088c950f8500849b
|
7
|
+
data.tar.gz: b46e2d66e02b01c8b963d686e7eb92191e65c9b434656bbd8076cb2881b5f3e4c1f924ab17f1c41084b16ab6fd7005908559d9d0d3fb351ef548c4a5b109b517
|
data/lib/falcon/adapters/rack.rb
CHANGED
@@ -90,6 +90,9 @@ module Falcon
|
|
90
90
|
|
91
91
|
self.unwrap_headers(request.headers, env)
|
92
92
|
|
93
|
+
# HTTP/2 prefers `:authority` over `host`, so we do this for backwards compatibility.
|
94
|
+
env['HTTP_HOST'] ||= request.authority
|
95
|
+
|
93
96
|
if remote_address = request.remote_address
|
94
97
|
env['REMOTE_ADDR'] = remote_address.ip_address if remote_address.ip?
|
95
98
|
end
|
data/lib/falcon/version.rb
CHANGED