Skip to content

Commit

Permalink
fixed issue 1102, thanks howesc
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Oct 20, 2012
1 parent 28084cf commit dc23087
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions gaehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit dc23087

Please sign in to comment.