fix error for key with number in env
This commit is contained in:
parent
6bba994f61
commit
f2f1ecb632
|
@ -138,7 +138,7 @@ class Roda
|
|||
def _proxy_headers
|
||||
env_host = env['HTTP_HOST'].to_s
|
||||
env_new = env
|
||||
.select { |k, _v| k.start_with? 'HTTP_' }
|
||||
.select { |k, _v| k.to_s.start_with? 'HTTP_' }
|
||||
.reject { |k, _v| k == 'HTTP_HOST' }
|
||||
.transform_keys do |k|
|
||||
k.sub(/^HTTP_/, '')
|
||||
|
|
Loading…
Reference in New Issue