emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

url-http redirection bug


From: Klaus Straubinger
Subject: url-http redirection bug
Date: Fri, 14 Jan 2005 14:03:10 +0100 (CET)

The function url-http-parse-headers does not reset url-http-data when
finding a 302 status code. Instead, url-request-data is cleared, but
this gets overwritten with url-http-data later on. It should do the
same as for the 303 status code.

The following patch should help:


--- url-http.el.orig    2005-01-04 13:13:48.000000000 +0100
+++ url-http.el 2005-01-14 13:55:57.955410520 +0100
@@ -459,7 +459,7 @@
              (url-http-debug "Converting `%s' request to `GET' because of 
REDIRECT(%d)"
                              url-http-method url-http-response-status)
              (setq url-http-method "GET"
-                   url-request-data nil)))
+                   url-http-data nil)))
           (303
            ;; The response to the request can be found under a different
            ;; URI and SHOULD be retrieved using a GET method on that



-- 
Klaus Straubinger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]