Merge pull request #28 from aardvarkk/master
Don't copy HTTP_VERSION from the source to the target request
This commit is contained in:
commit
ca11aba415
|
@ -131,7 +131,7 @@ module ReverseProxy
|
||||||
|
|
||||||
def extract_http_request_headers(env)
|
def extract_http_request_headers(env)
|
||||||
headers = env.reject do |k, v|
|
headers = env.reject do |k, v|
|
||||||
!(/^HTTP_[A-Z_]+$/ === k) || v.nil?
|
!(/^HTTP_[A-Z_]+$/ === k) || k == "HTTP_VERSION" || v.nil?
|
||||||
end.map do |k, v|
|
end.map do |k, v|
|
||||||
[reconstruct_header_name(k), v]
|
[reconstruct_header_name(k), v]
|
||||||
end.inject(Rack::Utils::HeaderHash.new) do |hash, k_v|
|
end.inject(Rack::Utils::HeaderHash.new) do |hash, k_v|
|
||||||
|
|
Loading…
Reference in New Issue