diff options
| author | Stefan Monnier | 2010-12-13 10:27:36 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-13 10:27:36 -0500 |
| commit | f49d1f52b2e368ef67dcfececd426de958548f4e (patch) | |
| tree | ce24ced92f2acc976daf4b69e3634c8bd600e44e /lisp/url | |
| parent | 07176b2a9e63a0d3933b167f987475d8a18da5cc (diff) | |
| parent | 11aad4e9f9f54ce8e9ecc66347e512b20a3cdf39 (diff) | |
| download | emacs-f49d1f52b2e368ef67dcfececd426de958548f4e.tar.gz emacs-f49d1f52b2e368ef67dcfececd426de958548f4e.zip | |
Merge from emacs-23
Diffstat (limited to 'lisp/url')
| -rw-r--r-- | lisp/url/ChangeLog | 37 | ||||
| -rw-r--r-- | lisp/url/url-cookie.el | 5 |
2 files changed, 24 insertions, 18 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 44cc511c99c..5fd96e43b6b 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * url-cookie.el (url-cookie-retrieve): Handle null LOCALPART. | ||
| 4 | Suggested by Lennart Borgman (Bug#7543). | ||
| 5 | |||
| 1 | 2010-11-16 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2010-11-16 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * url-file.el (url-file-build-filename): Avoid interpreting | 8 | * url-file.el (url-file-build-filename): Avoid interpreting |
| @@ -14,8 +19,8 @@ | |||
| 14 | 19 | ||
| 15 | 2010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org> | 20 | 2010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 16 | 21 | ||
| 17 | * url-http.el (url-http-wait-for-headers-change-function): Protect | 22 | * url-http.el (url-http-wait-for-headers-change-function): |
| 18 | against url-http-response-status for degenerate documents. | 23 | Protect against url-http-response-status for degenerate documents. |
| 19 | (url-http-wait-for-headers-change-function): Revert previous | 24 | (url-http-wait-for-headers-change-function): Revert previous |
| 20 | change. It lead to really slow loads. | 25 | change. It lead to really slow loads. |
| 21 | 26 | ||
| @@ -31,7 +36,7 @@ | |||
| 31 | 36 | ||
| 32 | 2010-10-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | 37 | 2010-10-03 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 33 | 38 | ||
| 34 | * url-vars.el (url-mime-charset-string): Changed the default to | 39 | * url-vars.el (url-mime-charset-string): Change the default to |
| 35 | nil to avoid sending 1171 bytes of not very useful data to the | 40 | nil to avoid sending 1171 bytes of not very useful data to the |
| 36 | HTTP server every request. | 41 | HTTP server every request. |
| 37 | 42 | ||
| @@ -119,8 +124,8 @@ | |||
| 119 | 2010-07-01 Mark A. Hershberger <mah@everybody.org> | 124 | 2010-07-01 Mark A. Hershberger <mah@everybody.org> |
| 120 | 125 | ||
| 121 | * url-http.el (url-http-create-request): Add a CRLF on the end so | 126 | * url-http.el (url-http-create-request): Add a CRLF on the end so |
| 122 | that POSTs with content to https urls work. See | 127 | that POSTs with content to https urls work. |
| 123 | <https://bugs.launchpad.net/mediawiki-el/+bug/540759> | 128 | See <https://bugs.launchpad.net/mediawiki-el/+bug/540759> |
| 124 | 129 | ||
| 125 | 2010-06-22 Mark A. Hershberger <mah@everybody.org> | 130 | 2010-06-22 Mark A. Hershberger <mah@everybody.org> |
| 126 | 131 | ||
| @@ -602,8 +607,8 @@ | |||
| 602 | * url-http.el (url-http-proxy): New variable. | 607 | * url-http.el (url-http-proxy): New variable. |
| 603 | (url-http-create-request): Use it. Don't use `url-proxy-object'. | 608 | (url-http-create-request): Use it. Don't use `url-proxy-object'. |
| 604 | (url-http): Treat `url' argument as resource to download, and | 609 | (url-http): Treat `url' argument as resource to download, and |
| 605 | dynamic variable `url-using-proxy' as proxy to use. Set | 610 | dynamic variable `url-using-proxy' as proxy to use. |
| 606 | `url-current-object' to actual URL, and `url-http-proxy' to proxy | 611 | Set `url-current-object' to actual URL, and `url-http-proxy' to proxy |
| 607 | used. | 612 | used. |
| 608 | (url-http-handle-cookies): Assume that `url-current-object' does | 613 | (url-http-handle-cookies): Assume that `url-current-object' does |
| 609 | not point to the proxy used. | 614 | not point to the proxy used. |
| @@ -619,24 +624,24 @@ | |||
| 619 | (url-proxy): Bind it instead of `proxy-object'. | 624 | (url-proxy): Bind it instead of `proxy-object'. |
| 620 | 625 | ||
| 621 | * url-http.el (url-http-create-request): Remove url argument, use | 626 | * url-http.el (url-http-create-request): Remove url argument, use |
| 622 | the buffer-local variable `url-http-target-url' instead. Both | 627 | the buffer-local variable `url-http-target-url' instead. |
| 623 | callers updated. Simplify proxy handling. | 628 | Both callers updated. Simplify proxy handling. |
| 624 | (url-http): Don't make proxy-object buffer local. | 629 | (url-http): Don't make proxy-object buffer local. |
| 625 | 630 | ||
| 626 | * url.el (url-retrieve-internal): Bind url-proxy-object to nil. | 631 | * url.el (url-retrieve-internal): Bind url-proxy-object to nil. |
| 627 | 632 | ||
| 628 | 2006-11-26 Magnus Henoch <mange@freemail.hu> | 633 | 2006-11-26 Magnus Henoch <mange@freemail.hu> |
| 629 | 634 | ||
| 630 | * url-http.el (url-http-wait-for-headers-change-function): Use | 635 | * url-http.el (url-http-wait-for-headers-change-function): |
| 631 | `when' instead of `if' when possible. | 636 | Use `when' instead of `if' when possible. |
| 632 | (url-http): Define url-http-response-version. | 637 | (url-http): Define url-http-response-version. |
| 633 | (url-http-parse-response): Set it. | 638 | (url-http-parse-response): Set it. |
| 634 | (url-http-parse-headers): Use it to determine keep-alive behavior. | 639 | (url-http-parse-headers): Use it to determine keep-alive behavior. |
| 635 | 640 | ||
| 636 | 2006-11-23 Diane Murray <disumu@x3y2z1.net> (tiny change) | 641 | 2006-11-23 Diane Murray <disumu@x3y2z1.net> (tiny change) |
| 637 | 642 | ||
| 638 | * url-http.el (url-http-content-length-after-change-function): Use | 643 | * url-http.el (url-http-content-length-after-change-function): |
| 639 | `url-lazy-message'. | 644 | Use `url-lazy-message'. |
| 640 | 645 | ||
| 641 | * url-util.el (url-display-percentage): Only show a message if | 646 | * url-util.el (url-display-percentage): Only show a message if |
| 642 | `url-show-status' is non-nil. | 647 | `url-show-status' is non-nil. |
| @@ -1018,8 +1023,8 @@ | |||
| 1018 | (url-cookie-generate-header-lines): Likewise. | 1023 | (url-cookie-generate-header-lines): Likewise. |
| 1019 | (url-cookie-handle-set-cookie): Likewise. | 1024 | (url-cookie-handle-set-cookie): Likewise. |
| 1020 | (url-cookie-create): Expect :localpart instead of :path. | 1025 | (url-cookie-create): Expect :localpart instead of :path. |
| 1021 | (url-cookie-localpart): Renamed from url-cookie-path. | 1026 | (url-cookie-localpart): Rename from url-cookie-path. |
| 1022 | (url-cookie-set-localpart): Renamed from url-cookie-set-path. | 1027 | (url-cookie-set-localpart): Rename from url-cookie-set-path. |
| 1023 | (url-cookie-file): Doc fix. | 1028 | (url-cookie-file): Doc fix. |
| 1024 | (url-cookie-p): Add doc string. | 1029 | (url-cookie-p): Add doc string. |
| 1025 | 1030 | ||
| @@ -2236,7 +2241,7 @@ | |||
| 2236 | message when we have to contact a host so the user always gets | 2241 | message when we have to contact a host so the user always gets |
| 2237 | at least some feedback. | 2242 | at least some feedback. |
| 2238 | 2243 | ||
| 2239 | * lisp/url-expand.el (url-expander-remove-relative-links): Moved and | 2244 | * lisp/url-expand.el (url-expander-remove-relative-links): Move and |
| 2240 | renamed function. | 2245 | renamed function. |
| 2241 | (url-default-expander): Use it. | 2246 | (url-default-expander): Use it. |
| 2242 | 2247 | ||
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el index e056db38a98..ec0974e9d76 100644 --- a/lisp/url/url-cookie.el +++ b/lisp/url/url-cookie.el | |||
| @@ -198,7 +198,7 @@ telling Microsoft that." | |||
| 198 | (and exp (> (float-time) (float-time (date-to-time exp)))))) | 198 | (and exp (> (float-time) (float-time (date-to-time exp)))))) |
| 199 | 199 | ||
| 200 | (defun url-cookie-retrieve (host &optional localpart secure) | 200 | (defun url-cookie-retrieve (host &optional localpart secure) |
| 201 | "Retrieve all the netscape-style cookies for a specified HOST and LOCALPART." | 201 | "Retrieve all cookies for a specified HOST and LOCALPART." |
| 202 | (let ((storage (if secure | 202 | (let ((storage (if secure |
| 203 | (append url-cookie-secure-storage url-cookie-storage) | 203 | (append url-cookie-secure-storage url-cookie-storage) |
| 204 | url-cookie-storage)) | 204 | url-cookie-storage)) |
| @@ -226,7 +226,8 @@ telling Microsoft that." | |||
| 226 | (setq cur (car cookies) | 226 | (setq cur (car cookies) |
| 227 | cookies (cdr cookies) | 227 | cookies (cdr cookies) |
| 228 | localpart-match (url-cookie-localpart cur)) | 228 | localpart-match (url-cookie-localpart cur)) |
| 229 | (if (and (if (stringp localpart-match) | 229 | (if (and (if (and (stringp localpart-match) |
| 230 | (stringp localpart)) | ||
| 230 | (string-match (concat "^" (regexp-quote | 231 | (string-match (concat "^" (regexp-quote |
| 231 | localpart-match)) | 232 | localpart-match)) |
| 232 | localpart) | 233 | localpart) |