Location header must be str, not unicode.

This commit is contained in:
Brad Fitzpatrick 2010-12-16 18:54:36 -08:00
parent d9c5b2db73
commit b4654b132f
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
# implies that he meant for clients to do a GET on subsequent requests,
# so 303 is probably what he wanted:
self.response.set_status(303)
self.response.headers.add_header("Location", '&'.join(query))
self.response.headers.add_header("Location", str('&'.join(query)))
class ErrorHandler(webapp.RequestHandler):