aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-05-05 12:10:24 +0000
committerEli Zaretskii2006-05-05 12:10:24 +0000
commit48abdb63bfcc329482d9ceb0ce9a965085d16c86 (patch)
treeb1e85c54dc8fe218daa63952a6439e1743e701d5
parentba1eeafade86f2f03c7e524ce730b733a56f48e4 (diff)
downloademacs-48abdb63bfcc329482d9ceb0ce9a965085d16c86.tar.gz
emacs-48abdb63bfcc329482d9ceb0ce9a965085d16c86.zip
(url-http-parse-headers): Don't reuse connection if "Connection: close" header
was seen.
-rw-r--r--lisp/url/url-http.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index c401094593e..45bf97ec6b6 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -386,6 +386,10 @@ should be shown to the user."
386 (url-http-parse-response) 386 (url-http-parse-response)
387 (mail-narrow-to-head) 387 (mail-narrow-to-head)
388 ;;(narrow-to-region (point-min) url-http-end-of-headers) 388 ;;(narrow-to-region (point-min) url-http-end-of-headers)
389 (let ((connection (mail-fetch-field "Connection")))
390 (if (and connection
391 (string= (downcase connection) "close"))
392 (delete-process url-http-process)))
389 (let ((class nil) 393 (let ((class nil)
390 (success nil)) 394 (success nil))
391 (setq class (/ url-http-response-status 100)) 395 (setq class (/ url-http-response-status 100))