diff --git a/lib/rack/reverse_proxy.rb b/lib/rack/reverse_proxy.rb index ddadd3f..4fa7a64 100644 --- a/lib/rack/reverse_proxy.rb +++ b/lib/rack/reverse_proxy.rb @@ -90,6 +90,8 @@ def get_matcher path def create_response_headers http_response response_headers = Rack::Utils::HeaderHash.new(http_response.to_hash) # handled by Rack + response_headers.delete('content-length') + # handled by Rack response_headers.delete('status') # TODO: figure out how to handle chunked responses response_headers.delete('transfer-encoding')