accepting latin1 encoding on GAE PATH_INFO

This commit is contained in:
Massimo Di Pierro
2011-12-16 11:40:35 -06:00
parent 45d1c45329
commit 8e11182059
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2011-12-16 11:30:50) stable
Version 1.99.4 (2011-12-16 11:40:28) stable
+1 -1
View File
@@ -76,7 +76,7 @@ logging.basicConfig(level=logging.INFO)
def wsgiapp(env, res):
"""Return the wsgiapp"""
env['PATH_INFO'] = env['PATH_INFO'].encode('utf8')
env['PATH_INFO'] = env['PATH_INFO'].decode('latin1').encode('utf8')
#this deals with a problem where GAE development server seems to forget
# the path between requests