lib/httpx/plugins/proxy/http.rb in httpx-0.11.3 vs lib/httpx/plugins/proxy/http.rb in httpx-0.12.0
- old
+ new
@@ -79,10 +79,10 @@
class ProxyParser < Connection::HTTP1
def headline_uri(request)
request.uri.to_s
end
- def set_request_headers(request)
+ def set_protocol_headers(request)
super
proxy_params = @options.proxy
request.headers["proxy-authorization"] = "Basic #{proxy_params.token_authentication}" if proxy_params.authenticated?
request.headers["proxy-connection"] = request.headers["connection"]
request.headers.delete("connection")