summaryrefslogtreecommitdiff
path: root/lisp/url/url-http.el
diff options
context:
space:
mode:
authorTao Fang <fangtao0901@gmail.com>2016-04-26 01:24:44 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2016-04-26 01:24:44 +0200
commit7b9a5c2a451781f674f0a7ebd71f1061a174f627 (patch)
tree9e1f5439a6147f1f7eea59a83445b6bca277195e /lisp/url/url-http.el
parentfd8956d36abaaa90137cf9f9c4b4095e3a2ac7c1 (diff)
downloademacs-7b9a5c2a451781f674f0a7ebd71f1061a174f627.tar.gz
Fix: (void-variable url-http-response-status)
* lisp/url/url-http.el (url-https-proxy-after-change-function): Display the error message before doing the callback to avoid a void variable situation (bug#23290).
Diffstat (limited to 'lisp/url/url-http.el')
-rw-r--r--lisp/url/url-http.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 23cd69590dc..d0f8364e8ef 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1379,8 +1379,8 @@ The return value of this function is the retrieval buffer."
(error "error: %s" e)))
(error "error: gnutls support needed!")))
(t
- (url-http-activate-callback)
- (message "error response: %d" url-http-response-status))))))
+ (message "error response: %d" url-http-response-status)
+ (url-http-activate-callback))))))
(defun url-http-async-sentinel (proc why)
;; We are performing an asynchronous connection, and a status change