[drakma-devel] Not following redirects and conditions

Edi Weitz edi at agharta.de
Fri Feb 9 14:19:41 UTC 2007


On Fri, 9 Feb 2007 18:49:29 +0530, "Saurabh Nanda" <saurabhnanda at gmail.com> wrote:

> If ":redirect nil" is set and the server responds with a Set-Cooke:
> header and an HTTP redirect, will the cookie be set?
>
> I noticed that when the header is the following the cookie is set --
> "Set-Cookie: cookie-name=some-randome-value"
>
> But when the header is the following, the cookie is not set --
> "Set-Cookie: cookie-name="
>
> Is this correct, or is it some bug in my tests?

The cookie should be set, with an empty string as its value.  The
value of :REDIRECT should not affect this.

If it's not set, it's an error in Drakma and I'd be happy if you could
send me a test case to reproduce it.



More information about the Drakma-devel mailing list