changeset 60035:a39aff2f88c4

(url-http-parse-headers): Test url-automatic-caching.
author Richard M. Stallman <rms@gnu.org>
date Mon, 14 Feb 2005 09:58:33 +0000
parents b99f3d8581c6
children fafa7c0e2b82
files lisp/url/url-http.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/url-http.el	Mon Feb 14 09:50:38 2005 +0000
+++ b/lisp/url/url-http.el	Mon Feb 14 09:58:33 2005 +0000
@@ -413,7 +413,7 @@
 	  ;; Generic success for all others.  Store in the cache, and
 	  ;; mark it as successful.
 	  (widen)
-	  (if (equal url-http-method "GET")
+	  (if (and url-automatic-caching (equal url-http-method "GET"))
 	      (url-store-in-cache (current-buffer)))
 	  (setq success t))))
       (3				; Redirection