From: Eli Zaretskii Date: Sat, 30 Sep 2017 13:33:30 +0000 (+0300) Subject: Fix url-http use of url-current-object X-Git-Tag: emacs-26.0.90~89 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a4f7518817;p=emacs.git Fix url-http use of url-current-object * lisp/url/url-http.el (url-http): Bind url-current-object before calling url-http-find-free-connection. (Bug#28515) --- diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 9e8c58b1cd4..51f158e5c21 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -1249,6 +1249,9 @@ The return value of this function is the retrieval buffer." (nsm-noninteractive (or url-request-noninteractive (and (boundp 'url-http-noninteractive) url-http-noninteractive))) + ;; The following binding is needed in url-open-stream, which + ;; is called from url-http-find-free-connection. + (url-current-object url) (connection (url-http-find-free-connection (url-host url) (url-port url) gateway-method))