diff options
| author | Chong Yidong | 2007-02-04 00:20:59 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-02-04 00:20:59 +0000 |
| commit | b3cd7f617609bad8210c2e7e03486c307a8104c6 (patch) | |
| tree | bb79da5a00c74d2357d3a9a8ef1aaf5811a99c3b | |
| parent | 05630abe3c19dcf048289d48c4089953cf2a9a9d (diff) | |
| download | emacs-b3cd7f617609bad8210c2e7e03486c307a8104c6.tar.gz emacs-b3cd7f617609bad8210c2e7e03486c307a8104c6.zip | |
(url-http-connection-opened): New variable.
(url-http): Initialize it.
(url-http-async-sentinel): Don't try changing sentinels.
Run url-http-end-of-document-sentinel if necessary.
| -rw-r--r-- | lisp/url/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 0125d4b0bfa..96529b92385 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2007-02-04 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * url-http.el (url-http-connection-opened): New variable. | ||
| 4 | (url-http): Initialize it. | ||
| 5 | (url-http-async-sentinel): Don't try changing sentinels. | ||
| 6 | Run url-http-end-of-document-sentinel if necessary. | ||
| 7 | |||
| 1 | 2007-01-29 Juanma Barranquero <lekktu@gmail.com> | 8 | 2007-01-29 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 9 | ||
| 3 | * url-auth.el (url-get-authentication): Fix typo in docstring. | 10 | * url-auth.el (url-get-authentication): Fix typo in docstring. |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index eb193f1c7a6..1d4d64f0e4d 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | (defvar url-http-extra-headers) | 30 | (defvar url-http-extra-headers) |
| 31 | (defvar url-http-target-url) | 31 | (defvar url-http-target-url) |
| 32 | (defvar url-http-proxy) | 32 | (defvar url-http-proxy) |
| 33 | (defvar url-http-connection-opened) | ||
| 33 | (require 'url-gw) | 34 | (require 'url-gw) |
| 34 | (require 'url-util) | 35 | (require 'url-util) |
| 35 | (require 'url-parse) | 36 | (require 'url-parse) |
| @@ -1118,6 +1119,7 @@ CBARGS as the arguments." | |||
| 1118 | url-http-extra-headers | 1119 | url-http-extra-headers |
| 1119 | url-http-data | 1120 | url-http-data |
| 1120 | url-http-target-url | 1121 | url-http-target-url |
| 1122 | url-http-connection-opened | ||
| 1121 | url-http-proxy)) | 1123 | url-http-proxy)) |
| 1122 | (set (make-local-variable var) nil)) | 1124 | (set (make-local-variable var) nil)) |
| 1123 | 1125 | ||
| @@ -1132,6 +1134,7 @@ CBARGS as the arguments." | |||
| 1132 | url-callback-arguments cbargs | 1134 | url-callback-arguments cbargs |
| 1133 | url-http-after-change-function 'url-http-wait-for-headers-change-function | 1135 | url-http-after-change-function 'url-http-wait-for-headers-change-function |
| 1134 | url-http-target-url url-current-object | 1136 | url-http-target-url url-current-object |
| 1137 | url-http-connection-opened nil | ||
| 1135 | url-http-proxy url-using-proxy) | 1138 | url-http-proxy url-using-proxy) |
| 1136 | 1139 | ||
| 1137 | (set-process-buffer connection buffer) | 1140 | (set-process-buffer connection buffer) |
| @@ -1155,8 +1158,10 @@ CBARGS as the arguments." | |||
| 1155 | ;; has occurred. | 1158 | ;; has occurred. |
| 1156 | (with-current-buffer (process-buffer proc) | 1159 | (with-current-buffer (process-buffer proc) |
| 1157 | (cond | 1160 | (cond |
| 1161 | (url-http-connection-opened | ||
| 1162 | (url-http-end-of-document-sentinel proc why)) | ||
| 1158 | ((string= (substring why 0 4) "open") | 1163 | ((string= (substring why 0 4) "open") |
| 1159 | (set-process-sentinel proc 'url-http-end-of-document-sentinel) | 1164 | (setq url-http-connection-opened t) |
| 1160 | (process-send-string proc (url-http-create-request))) | 1165 | (process-send-string proc (url-http-create-request))) |
| 1161 | (t | 1166 | (t |
| 1162 | (setf (car url-callback-arguments) | 1167 | (setf (car url-callback-arguments) |