diff options
| author | Chong Yidong | 2008-02-25 17:11:25 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-02-25 17:11:25 +0000 |
| commit | d2b56a4ee80705e7263050b0e81d3fb10e4579e3 (patch) | |
| tree | 4183f1108c71db85952f3c2f92da2bcc7ece342d | |
| parent | 5a5231e78d0fb80810cb2029a16166a303091a02 (diff) | |
| download | emacs-d2b56a4ee80705e7263050b0e81d3fb10e4579e3.tar.gz emacs-d2b56a4ee80705e7263050b0e81d3fb10e4579e3.zip | |
Revert last fix; subset of last fix recommitted.
(url-digest-auth): If the 'opaque' argument is not being used, don't
add it to the response text.
| -rw-r--r-- | lisp/url/url-auth.el | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lisp/url/url-auth.el b/lisp/url/url-auth.el index adf1a5fabcb..17e03fe2804 100644 --- a/lisp/url/url-auth.el +++ b/lisp/url/url-auth.el | |||
| @@ -158,7 +158,7 @@ instead of hostname:portnum." | |||
| 158 | (setq file (cond | 158 | (setq file (cond |
| 159 | (realm realm) | 159 | (realm realm) |
| 160 | ((string-match "/$" file) file) | 160 | ((string-match "/$" file) file) |
| 161 | (t (url-basepath file))) | 161 | (t (url-file-directory file))) |
| 162 | server (format "%s:%d" server port) | 162 | server (format "%s:%d" server port) |
| 163 | byserv (cdr-safe (assoc server url-digest-auth-storage))) | 163 | byserv (cdr-safe (assoc server url-digest-auth-storage))) |
| 164 | (cond | 164 | (cond |
| @@ -188,18 +188,18 @@ instead of hostname:portnum." | |||
| 188 | (string= data (substring file 0 (length data))))) | 188 | (string= data (substring file 0 (length data))))) |
| 189 | (setq retval (cdr (car byserv)))) | 189 | (setq retval (cdr (car byserv)))) |
| 190 | (setq byserv (cdr byserv)))) | 190 | (setq byserv (cdr byserv)))) |
| 191 | (if overwrite | 191 | (if (or (and (not retval) prompt) overwrite) |
| 192 | (if (and (not retval) prompt) | 192 | (progn |
| 193 | (setq user (read-string (url-auth-user-prompt url realm) | 193 | (setq user (read-string (url-auth-user-prompt url realm) |
| 194 | (user-real-login-name)) | 194 | (user-real-login-name)) |
| 195 | pass (read-passwd "Password: ") | 195 | pass (read-passwd "Password: ") |
| 196 | retval (setq retval | 196 | retval (setq retval |
| 197 | (cons user | 197 | (cons user |
| 198 | (url-digest-auth-create-key | 198 | (url-digest-auth-create-key |
| 199 | user pass realm | 199 | user pass realm |
| 200 | (or url-request-method "GET") | 200 | (or url-request-method "GET") |
| 201 | url))) | 201 | url))) |
| 202 | byserv (assoc server url-digest-auth-storage)) | 202 | byserv (assoc server url-digest-auth-storage)) |
| 203 | (setcdr byserv | 203 | (setcdr byserv |
| 204 | (cons (cons file retval) (cdr byserv)))))) | 204 | (cons (cons file retval) (cdr byserv)))))) |
| 205 | (t (setq retval nil))) | 205 | (t (setq retval nil))) |