fixed issue 1102, thanks howesc

This commit is contained in:
mdipierro
2012-10-20 10:12:04 -05:00
parent b37ed1c1e0
commit cb9c2a8ef9
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.1.1 (2012-10-20 10:11:05) dev
Version 2.1.1 (2012-10-20 10:12:01) dev
+6
View File
@@ -78,6 +78,12 @@ def wsgiapp(env, res):
"""Return the wsgiapp"""
env['PATH_INFO'] = env['PATH_INFO'].decode('latin1').encode('utf8')
#when using the blobstore image uploader GAE dev SDK passes these as unicode
# they should be regular strings as they are parts of URLs
env['wsgi.url_scheme'] = str(env['wsgi.url_scheme'])
env['QUERY_STRING'] = str(env['QUERY_STRING'])
env['SERVER_NAME'] = str(env['SERVER_NAME'])
#this deals with a problem where GAE development server seems to forget
# the path between requests
if global_settings.web2py_runtime == 'gae:development':