GoogleCloudPlatform / webapp2

webapp2 is a framework for Google App Engine
https://webapp2.readthedocs.org
Other
141 stars 63 forks source link

self.redirect() doesn't work when uri contains utf-8 characters #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Code:
self.redirect("/test-ą/", code=301, abort=True)

Instead of redirecting, it shows:
301 Moved Permanently
The resource has been moved to http://localhost:8089/test-ą/; you should be 
redirected automatically.

Google App Engine 1.8.0, webapp2 2.5.2

Similar issue on App Engine issue tracker: 
http://code.google.com/p/googleappengine/issues/detail?id=7172 ("python27 
webapp2 'header values must be str' on redirect")

Original issue reported on code.google.com by kem...@gmail.com on 23 May 2013 at 11:05