aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Fitzsimmons2021-01-31 18:36:52 -0500
committerThomas Fitzsimmons2021-01-31 19:11:16 -0500
commitdc78f8a4ead88744c258ae712adb4fbbb65ec539 (patch)
tree7ffba9ef0c63ef3bbfb1a30610206f051cca8244
parent85b0137858098013eb8ab66c4e9b256eedb1954d (diff)
downloademacs-dc78f8a4ead88744c258ae712adb4fbbb65ec539.tar.gz
emacs-dc78f8a4ead88744c258ae712adb4fbbb65ec539.zip
url-http.el: Special-case NTLM authentication
* lisp/url/url-http.el (url-http-handle-authentication): Do not signal an error on NTLM authorization strings. (Bug#43566)
-rw-r--r--lisp/url/url-http.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index b4d7d333f34..473da6f84c9 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -461,8 +461,10 @@ Return the number of characters removed."
461 ;; headers, then this means that we've already tried sending 461 ;; headers, then this means that we've already tried sending
462 ;; credentials to the server, and they were wrong, so just give 462 ;; credentials to the server, and they were wrong, so just give
463 ;; up. 463 ;; up.
464 (when (assoc "Authorization" url-http-extra-headers) 464 (let ((authorization (assoc "Authorization" url-http-extra-headers)))
465 (error "Wrong authorization used for %s" url)) 465 (when (and authorization
466 (not (string-match "^NTLM " (cdr authorization))))
467 (error "Wrong authorization used for %s" url)))
466 468
467 ;; find strongest supported auth 469 ;; find strongest supported auth
468 (dolist (this-auth auths) 470 (dolist (this-auth auths)