From: Andreas Schwab Date: Fri, 29 Jun 2018 15:24:31 +0000 (+0200) Subject: Use a non-proxy request when retrieving https URLs via a proxy X-Git-Tag: emacs-27.0.90~4749 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=84613dae5c34ea742dd9a3e56f5acb55f604b483;p=emacs.git 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. --- diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 53798f77c39..817c5ce3b3d 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -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))