aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-02-15 21:05:32 -0500
committerGlenn Morris2013-02-15 21:05:32 -0500
commitfe2219e20272be72e5c4e8996d531af5489f1002 (patch)
tree7f479e387898808bf3b1f64eebec1e280716ec55
parentbb9dfee1d6d0e67b3564d25580f144d25284c0ea (diff)
downloademacs-fe2219e20272be72e5c4e8996d531af5489f1002.tar.gz
emacs-fe2219e20272be72e5c4e8996d531af5489f1002.zip
url-http-wait-for-headers-change-function fix for bug#13598
* lisp/url/url-http.el (url-http-wait-for-headers-change-function): Avoid prematurely finding the end of headers when they arrive line-by-line.
-rw-r--r--lisp/url/ChangeLog6
-rw-r--r--lisp/url/url-http.el4
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 72842ad188d..f8f24de6b68 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,9 @@
12013-02-16 Glenn Morris <rgm@gnu.org>
2
3 * url-http.el (url-http-wait-for-headers-change-function):
4 Avoid prematurely finding the end of headers when they arrive
5 line-by-line. (Bug#13598)
6
12013-02-03 Stefan Monnier <monnier@iro.umontreal.ca> 72013-02-03 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * url-cache.el (url-cache-create-filename-using-md5): Don't waste your 9 * url-cache.el (url-cache-create-filename-using-md5): Don't waste your
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 5dd3a751702..33fc5722759 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1040,7 +1040,9 @@ the end of the document."
1040 (setq end-of-headers t 1040 (setq end-of-headers t
1041 url-http-end-of-headers 0 1041 url-http-end-of-headers 0
1042 old-http t) 1042 old-http t)
1043 (when (re-search-forward "^\r*$" nil t) 1043 ;; Blank line at end of headers.
1044 (when (re-search-forward "^\r?\n" nil t)
1045 (backward-char 1)
1044 ;; Saw the end of the headers 1046 ;; Saw the end of the headers
1045 (url-http-debug "Saw end of headers... (%s)" (buffer-name)) 1047 (url-http-debug "Saw end of headers... (%s)" (buffer-name))
1046 (setq url-http-end-of-headers (set-marker (make-marker) 1048 (setq url-http-end-of-headers (set-marker (make-marker)