diff --git a/VERSION b/VERSION index 51c3ddfc..291cb1bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.1.1 (2012-10-20 10:11:05) dev +Version 2.1.1 (2012-10-20 10:12:01) dev diff --git a/gaehandler.py b/gaehandler.py index b039d40b..30c49ecc 100755 --- a/gaehandler.py +++ b/gaehandler.py @@ -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':