]> git.eshelyaron.com Git - emacs.git/commitdiff
(url-http-wait-for-headers-change-function): Defer detection of HTTP
authorMagnus Henoch <mange@freemail.hu>
Wed, 15 Nov 2006 23:07:23 +0000 (23:07 +0000)
committerMagnus Henoch <mange@freemail.hu>
Wed, 15 Nov 2006 23:07:23 +0000 (23:07 +0000)
0.9 until we have at least one line.

lisp/url/ChangeLog
lisp/url/url-http.el

index adae66aee91ebabbd8f1c283f4dca17eef5abac8..22fc1ab0a028490ec2e7ce22d2325c7869a6b9c0 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-15  Shun-ichi GOTO  <gotoh@taiyo.co.jp> (tiny change)
+
+       * url-http.el (url-http-wait-for-headers-change-function): Defer
+       detection of HTTP 0.9 until we have at least one line.
+
 2006-11-10  Shun-ichi GOTO  <gotoh@taiyo.co.jp> (tiny change)
 
        * url-http.el (url-http-mark-connection-as-free)
index 2fb90058b51943590d1ec9d3e821cf3e272fbd7a..dc670188e26ee581e61bf39875134e4352c840cc 100644 (file)
@@ -933,7 +933,8 @@ the end of the document."
            (old-http nil)
            (content-length nil))
        (goto-char (point-min))
-       (if (not (looking-at "^HTTP/[1-9]\\.[0-9]"))
+       (if (and (looking-at ".*\n")    ; have one line at least
+                (not (looking-at "^HTTP/[1-9]\\.[0-9]")))
            ;; Not HTTP/x.y data, must be 0.9
            ;; God, I wish this could die.
            (setq end-of-headers t