Commit b0e0b216 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

url-http.el (url-http-end-of-document-sentinel): Protect against the

process buffer being killed.
parent 29c72a6e
2010-10-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
* url-http.el (url-http-end-of-document-sentinel): Protect against
the process buffer being killed.
2010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
* url-http.el (url-http-wait-for-headers-change-function): Protect
......
......@@ -874,13 +874,14 @@ should be shown to the user."
(url-http-debug "url-http-end-of-document-sentinel in buffer (%s)"
(process-buffer proc))
(url-http-idle-sentinel proc why)
(with-current-buffer (process-buffer proc)
(goto-char (point-min))
(if (not (looking-at "HTTP/"))
;; HTTP/0.9 just gets passed back no matter what
(url-http-activate-callback)
(if (url-http-parse-headers)
(url-http-activate-callback)))))
(when (buffer-name (process-buffer proc))
(with-current-buffer (process-buffer proc)
(goto-char (point-min))
(if (not (looking-at "HTTP/"))
;; HTTP/0.9 just gets passed back no matter what
(url-http-activate-callback)
(if (url-http-parse-headers)
(url-http-activate-callback))))))
(defun url-http-simple-after-change-function (st nd length)
;; Function used when we do NOT know how long the document is going to be
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment