]> code.delx.au - gnu-emacs/commitdiff
Fix: (void-variable url-http-response-status)
authorTao Fang <fangtao0901@gmail.com>
Mon, 25 Apr 2016 23:24:44 +0000 (01:24 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 25 Apr 2016 23:24:44 +0000 (01:24 +0200)
* 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).

lisp/url/url-http.el

index 23cd69590dc722160e77b471594fce22de69ebe5..d0f8364e8efe2c6138cd8433d5b55056516c4a46 100644 (file)
@@ -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