diff options
Diffstat (limited to 'lisp/url/url.el')
-rw-r--r-- | lisp/url/url.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/url/url.el b/lisp/url/url.el index 8daf9f0a8e8..a6565e2cdb6 100644 --- a/lisp/url/url.el +++ b/lisp/url/url.el @@ -208,9 +208,10 @@ URL-encoded before it's used." (url-find-proxy-for-url url (url-host url)))) (buffer nil) (asynch (url-scheme-get-property (url-type url) 'asynchronous-p))) - (if url-using-proxy - (setq asynch t - loader #'url-proxy)) + (when url-using-proxy + (setf asynch t + loader #'url-proxy + (url-asynchronous url) t)) (if asynch (let ((url-current-object url)) (setq buffer (funcall loader url callback cbargs))) |