Cookie/redirection URL fixup
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 10 Feb 2012 17:25:31 +0000 (18:25 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 10 Feb 2012 17:25:31 +0000 (18:25 +0100)
(url-http-parse-headers): When redirecting, pass on
the `inhibit-cookie' parameter.

lisp/url/ChangeLog
lisp/url/url-http.el

index 14aaa4b..4f49adc 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-10  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * url-http.el (url-http-parse-headers): When redirecting, pass on
+       the `inhibit-cookie' parameter.
+
 2012-02-10  Glenn Morris  <rgm@gnu.org>
 
        * url-queue.el (url-queue-retrieve): Fic previous doc fix.
index 6653176..00bb712 100644 (file)
@@ -647,7 +647,8 @@ should be shown to the user."
                        (url-retrieve-internal
                         redirect-uri url-callback-function
                         url-callback-arguments
-                        (url-silent url-current-object)))
+                        (url-silent url-current-object)
+                        (not (url-use-cookies url))))
                   (url-mark-buffer-as-dead buffer))
               ;; We hit url-max-redirections, so issue an error and
               ;; stop redirecting.