]> code.delx.au - gnu-emacs-elpa/commitdiff
url-http-ntlm: Declare url-http-extra-headers special
authorThomas Fitzsimmons <fitzsim@fitzsim.org>
Thu, 29 Oct 2015 13:56:11 +0000 (09:56 -0400)
committerThomas Fitzsimmons <fitzsim@fitzsim.org>
Thu, 18 Feb 2016 03:19:54 +0000 (22:19 -0500)
* url-http-ntlm.el (url-http-ntlm--clean-headers): Declare
url-http-extra-headers special.
(url-http-ntlm--get-stage): Likewise.

packages/url-http-ntlm/url-http-ntlm.el

index 915e9d6ee6520229bef43a0d6df05cb66b9e7b77..c0af6dda19eb4927f13ecccb29d4190e02a5157a 100644 (file)
@@ -123,6 +123,7 @@ request to the host in URL's server slot."
 
 (defun url-http-ntlm--clean-headers ()
   "Remove Authorization element from `url-http-extra-headers' alist."
+  (cl-declare (special url-http-extra-headers))
   (setq url-http-extra-headers
        (url-http-ntlm--rmssoc "Authorization" url-http-extra-headers)))
 
@@ -138,6 +139,7 @@ nil), and then twice for every stage of the handshake: the first
 time PROMPT is nil, the second, t; ARGS contains the server
 response's \"WWW-Authenticate\" header, munged by
 `url-parse-args'."
+  (cl-declare (special url-http-extra-headers))
   (let* ((response-rxp    "^NTLM TlRMTVNTUAADAAA")
         (challenge-rxp    "^TLRMTVNTUAACAAA")
         (auth-header      (assoc "Authorization" url-http-extra-headers))