From 84613dae5c34ea742dd9a3e56f5acb55f604b483 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 29 Jun 2018 17:24:31 +0200 Subject: [PATCH] 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. --- lisp/url/url-http.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.5