]> git.eshelyaron.com Git - emacs.git/commitdiff
Use a non-proxy request when retrieving https URLs via a proxy
authorAndreas Schwab <schwab@linux-m68k.org>
Fri, 29 Jun 2018 15:24:31 +0000 (17:24 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Fri, 29 Jun 2018 15:25:37 +0000 (17:25 +0200)
* 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

index 53798f77c399960a02f157bf40aa836677faa636..817c5ce3b3db02624dcf72a9988993f374923389 100644 (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))