check inside redirect() is absolute_url is unicode

Issue #11 new
Dorian Hoxha
created an issue


So I tried to redirect using an url that I got from the db, which my db returns stuff in unicode, but it failed, because you can't use unicode in headers: assert type(val) is StringType,"Header values must be strings"

Maybe check inside redirect(absolute_url) if absolute_url is unicode ?

Or maybe this is the developer's fault ? Currently I just created my own redirect wrapper.


Comments (2)

  1. Log in to comment