Flup needs str's in headers....

4 views
Skip to first unread message

Chas Emerick

unread,
Aug 17, 2006, 5:05:45 AM8/17/06
to pylons-discuss
This is somewhat related to this thread, where flup's insistence upon
getting strings for header values was affirmed, and resolved for beaker
session values:

http://groups.google.com/group/pylons-discuss/browse_thread/thread/74bdb8ef52c0e71b/

The same flup error also happens when using h.redirect_to with a
unicode string. Flup is asserting that the header values be str, so
the redirect_to call passing along a unicode string is a no-no.

Might I suggest that h.redirect_to() flatten all incoming redirection
URL's using str()?

For that matter, perhaps it would be a good idea to make it so that any
and all headers going into a Response are (a) removed if their value is
None, and (b) flattened using str() otherwise.

Chas Emerick
ceme...@snowtide.com

Reply all
Reply to author
Forward
0 new messages