diff options
| author | Richard M. Stallman | 2005-07-15 05:12:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-07-15 05:12:19 +0000 |
| commit | dc524e8ba54e8bd02e23b39159a6eb927af8ea12 (patch) | |
| tree | 919af5bacb6dc8a8d818efac9c0f9123db87b55b | |
| parent | 497803edbef7a0e4b7b875165346fcf77e0ac298 (diff) | |
| download | emacs-dc524e8ba54e8bd02e23b39159a6eb927af8ea12.tar.gz emacs-dc524e8ba54e8bd02e23b39159a6eb927af8ea12.zip | |
(url-http-parse-headers): Add :redirect arg-pair
when calling url-retrieve, to indicate a redirect.
| -rw-r--r-- | lisp/url/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 0313379814f..2609ff4ee13 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2005-07-15 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * url-http.el (url-http-parse-headers): Add :redirect arg-pair | ||
| 4 | when calling url-retrieve, to indicate a redirect. | ||
| 5 | |||
| 6 | * url.el (url-retrieve): The callback function can get an additional | ||
| 7 | keyword arg pair. | ||
| 8 | |||
| 1 | 2005-07-04 Lute Kamstra <lute@gnu.org> | 9 | 2005-07-04 Lute Kamstra <lute@gnu.org> |
| 2 | 10 | ||
| 3 | Update FSF's address in GPL notices. | 11 | Update FSF's address in GPL notices. |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 92cbf41e76b..b8bf920e2e5 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -501,8 +501,9 @@ should be shown to the user." | |||
| 501 | (url-request-data url-http-data) | 501 | (url-request-data url-http-data) |
| 502 | (url-request-extra-headers url-http-extra-headers)) | 502 | (url-request-extra-headers url-http-extra-headers)) |
| 503 | (url-retrieve redirect-uri url-callback-function | 503 | (url-retrieve redirect-uri url-callback-function |
| 504 | (cons redirect-uri | 504 | (cons :redirect |
| 505 | (cdr url-callback-arguments))) | 505 | (cons redirect-uri |
| 506 | url-callback-arguments))) | ||
| 506 | (url-mark-buffer-as-dead (current-buffer)))))) | 507 | (url-mark-buffer-as-dead (current-buffer)))))) |
| 507 | (4 ; Client error | 508 | (4 ; Client error |
| 508 | ;; 400 Bad Request | 509 | ;; 400 Bad Request |