From: Lars Magne Ingebrigtsen Date: Mon, 4 Oct 2010 19:05:53 +0000 (+0200) Subject: * url-http.el (url-http-wait-for-headers-change-function): Protect X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~46^2~186 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=697ebdb06b70c96e79b844216c305c3ec2eb7f07;p=emacs.git * url-http.el (url-http-wait-for-headers-change-function): Protect against url-http-response-status for degenerate documents. --- diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index f50808ff8dd..720f682d225 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog @@ -1,3 +1,8 @@ +2010-10-04 Lars Magne Ingebrigtsen + + * url-http.el (url-http-wait-for-headers-change-function): Protect + against url-http-response-status for degenerate documents. + 2010-10-03 Glenn Morris * url-util.el (url-get-url-filename-chars): Don't eval-and-compile. diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 1c9c8c8a3de..71de213b64b 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -1054,7 +1054,8 @@ the end of the document." end-of-headers t) (url-http-clean-headers))) - (if (not end-of-headers) + (if (or (not end-of-headers) + (not url-http-response-status)) ;; Haven't seen the end of the headers yet, need to wait ;; for more data to arrive. nil