aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/url/ChangeLog5
-rw-r--r--lisp/url/url-http.el23
2 files changed, 15 insertions, 13 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 9f7ad1c1ca5..27b23ac80bb 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,8 @@
12011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * url-http.el (url-http-wait-for-headers-change-function): Remove
4 pointless "HTTP/0.9 How I hate thee!" message (bug#6735).
5
12011-06-04 Andreas Schwab <schwab@linux-m68k.org> 62011-06-04 Andreas Schwab <schwab@linux-m68k.org>
2 7
3 * url-future.el (url-future-test): Fix scope of `saver'. 8 * url-future.el (url-future-test): Fix scope of `saver'.
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 28071e7165a..78da8121722 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1059,19 +1059,16 @@ the end of the document."
1059 ;; Haven't seen the end of the headers yet, need to wait 1059 ;; Haven't seen the end of the headers yet, need to wait
1060 ;; for more data to arrive. 1060 ;; for more data to arrive.
1061 nil 1061 nil
1062 (if old-http 1062 (unless old-http
1063 (message "HTTP/0.9 How I hate thee!") 1063 (url-http-parse-response)
1064 (progn 1064 (mail-narrow-to-head)
1065 (url-http-parse-response) 1065 (setq url-http-transfer-encoding (mail-fetch-field
1066 (mail-narrow-to-head) 1066 "transfer-encoding")
1067 ;;(narrow-to-region (point-min) url-http-end-of-headers) 1067 url-http-content-type (mail-fetch-field "content-type"))
1068 (setq url-http-transfer-encoding (mail-fetch-field 1068 (if (mail-fetch-field "content-length")
1069 "transfer-encoding") 1069 (setq url-http-content-length
1070 url-http-content-type (mail-fetch-field "content-type")) 1070 (string-to-number (mail-fetch-field "content-length"))))
1071 (if (mail-fetch-field "content-length") 1071 (widen))
1072 (setq url-http-content-length
1073 (string-to-number (mail-fetch-field "content-length"))))
1074 (widen)))
1075 (when url-http-transfer-encoding 1072 (when url-http-transfer-encoding
1076 (setq url-http-transfer-encoding 1073 (setq url-http-transfer-encoding
1077 (downcase url-http-transfer-encoding))) 1074 (downcase url-http-transfer-encoding)))