0.9 until we have at least one line.
+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)
(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