summaryrefslogtreecommitdiff
path: root/lisp/url
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/url')
-rw-r--r--lisp/url/url-http.el6
-rw-r--r--lisp/url/url-vars.el13
2 files changed, 7 insertions, 12 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 61e07a0d9ca..8cebd4e79f6 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -461,8 +461,10 @@ Return the number of characters removed."
;; headers, then this means that we've already tried sending
;; credentials to the server, and they were wrong, so just give
;; up.
- (when (assoc "Authorization" url-http-extra-headers)
- (error "Wrong authorization used for %s" url))
+ (let ((authorization (assoc "Authorization" url-http-extra-headers)))
+ (when (and authorization
+ (not (string-match "^NTLM " (cdr authorization))))
+ (error "Wrong authorization used for %s" url)))
;; find strongest supported auth
(dolist (this-auth auths)
diff --git a/lisp/url/url-vars.el b/lisp/url/url-vars.el
index 6493abfa056..8c836f8f64d 100644
--- a/lisp/url/url-vars.el
+++ b/lisp/url/url-vars.el
@@ -55,26 +55,19 @@
:group 'url)
-(defvar url-current-object nil
+(defvar-local url-current-object nil
"A parsed representation of the current URL.")
-(defvar url-current-mime-headers nil
+(defvar-local url-current-mime-headers nil
"A parsed representation of the MIME headers for the current URL.")
-(defvar url-current-lastloc nil
+(defvar-local url-current-lastloc nil
"A parsed representation of the URL to be considered as the last location.
Use of this value on outbound connections is subject to
`url-privacy-level' and `url-lastloc-privacy-level'. This is never set
by the url library, applications are expected to set this
variable in buffers representing a displayed location.")
-(mapc 'make-variable-buffer-local
- '(
- url-current-object
- url-current-mime-headers
- url-current-lastloc
- ))
-
(defcustom url-honor-refresh-requests t
"Whether to do automatic page reloads.
These are done at the request of the document author or the server via