+2007-02-04 Chong Yidong <cyd@stupidchicken.com>
+
+ * url-http.el (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.
+
2007-01-29 Juanma Barranquero <lekktu@gmail.com>
* url-auth.el (url-get-authentication): Fix typo in docstring.
(defvar url-http-extra-headers)
(defvar url-http-target-url)
(defvar url-http-proxy)
+(defvar url-http-connection-opened)
(require 'url-gw)
(require 'url-util)
(require 'url-parse)
url-http-extra-headers
url-http-data
url-http-target-url
+ url-http-connection-opened
url-http-proxy))
(set (make-local-variable var) nil))
url-callback-arguments cbargs
url-http-after-change-function 'url-http-wait-for-headers-change-function
url-http-target-url url-current-object
+ url-http-connection-opened nil
url-http-proxy url-using-proxy)
(set-process-buffer connection buffer)
;; has occurred.
(with-current-buffer (process-buffer proc)
(cond
+ (url-http-connection-opened
+ (url-http-end-of-document-sentinel proc why))
((string= (substring why 0 4) "open")
- (set-process-sentinel proc 'url-http-end-of-document-sentinel)
+ (setq url-http-connection-opened t)
(process-send-string proc (url-http-create-request)))
(t
(setf (car url-callback-arguments)