Use a non-proxy request when retrieving https URLs via a proxy

* lisp/url/url-http.el
(url-https-proxy-after-change-function): Bind url-http-proxy
to nil around url-http-create-request.
This commit is contained in:
Andreas Schwab 2018-06-29 17:24:31 +02:00
parent 45390596e6
commit 84613dae5c

View file

@ -1412,7 +1412,9 @@ The return value of this function is the retrieval buffer."
'url-http-wait-for-headers-change-function)
(set-process-filter tls-connection 'url-http-generic-filter)
(process-send-string tls-connection
(url-http-create-request)))
;; Use the non-proxy form of the request
(let (url-http-proxy)
(url-http-create-request))))
(gnutls-error
(url-http-activate-callback)
(error "gnutls-error: %s" e))