Skip to content
Snippets Groups Projects
Commit 7b6f4730c547 authored by Bob Ippolito's avatar Bob Ippolito
Browse files

typo

git-svn-id: http://simplejson.googlecode.com/svn/trunk@16 a4795897-2c25-0410-b006-0d3caba88fa1
parent 8828cf84174c
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
data = environ['wsgi.input'].read(*map(int, args)) data = environ['wsgi.input'].read(*map(int, args))
environ['jsonfilter.json'] = simplejson.loads(data) environ['jsonfilter.json'] = simplejson.loads(data)
res = simplejson.dumps(self.app(environ, json_start_response)) res = simplejson.dumps(self.app(environ, json_start_response))
jsonp = res.parse_qs(environ.get('QUERY_STRING', '')).get('jsonp') jsonp = cgi.parse_qs(environ.get('QUERY_STRING', '')).get('jsonp')
if jsonp: if jsonp:
content_type = 'text/javascript' content_type = 'text/javascript'
res = ''.join(jsonp + ['(', res, ')']) res = ''.join(jsonp + ['(', res, ')'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment