Hi,

I found I was having problems redirecting to non-local pages
using sendRedirect or setting the headers manually. It worked
fine with the CGIAdapter and I found that it was the fault
of a line in ModSnakeAdapter

The problem was that the headers were being split on a colon
but if the value contained any colons, only the first section
was being used. So

Location: https://blah...

became

Location: https

And I'd get a 404 for the local file https

So here's the change needed in ModPythonAdapter.py, as I see it:

136c136
<    req.headers_out[header[0]] = header[1]
---
>    req.headers_out[header[0]] = string.join(header[1:], ":")

Regards,

David O'Callaghan


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to