falcon 0.18.9 → 0.18.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d769e67fa1441274e619f4b4a39a60675a8e4da99f0eaf84f3c8a62837072cc6
4
- data.tar.gz: 1a0a3bf641fcbbcd94378dea7d6b90784aeb753f6a2187996feb812bbe86daf0
3
+ metadata.gz: 5141538bd61caee367501c956197f2569a3489629fd84933a7d3f5a10d6f9b6c
4
+ data.tar.gz: ad736ac84ca42b076f68e13c442ffd5961362f7b7ccebeb228940455a55dff06
5
5
  SHA512:
6
- metadata.gz: eb85bf1dac3a2d9608cd439f12876ee522352d6994b0090ddcfd73d4036b788a43fab423edaf716db066c314c8c49047f9e770a7bbed6b56b1437868689cd35c
7
- data.tar.gz: 7fe38f397c1c06d0b437d54cdcc90ac00fcb27959bafc827bd6d9802dcf88ec02af26afb256d5d4ba7df7aff5fd6e9bc680298fac1c000bd209e5b6885330adc
6
+ metadata.gz: 381a250a37641a2ecb9f92d947ea94a090302932ad41166a6ef7ec63f3013ca3e1f9cbbc15a50b034fc7d7bac61b7f4f22c300d5d5fb730e088c950f8500849b
7
+ data.tar.gz: b46e2d66e02b01c8b963d686e7eb92191e65c9b434656bbd8076cb2881b5f3e4c1f924ab17f1c41084b16ab6fd7005908559d9d0d3fb351ef548c4a5b109b517
@@ -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
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Falcon
22
- VERSION = "0.18.9"
22
+ VERSION = "0.18.10"
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.9
4
+ version: 0.18.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams