Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
777535e6
Commit
777535e6
authored
Dec 28, 2015
by
Ruben De Visscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pass encoding to unquote on Python 2 since it is not supported there.
parent
84c89421
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
gevent/pywsgi.py
gevent/pywsgi.py
+8
-1
No files found.
gevent/pywsgi.py
View file @
777535e6
...
@@ -16,6 +16,7 @@ import sys
...
@@ -16,6 +16,7 @@ import sys
import
time
import
time
import
traceback
import
traceback
from
datetime
import
datetime
from
datetime
import
datetime
try
:
try
:
from
urllib
import
unquote
from
urllib
import
unquote
except
ImportError
:
except
ImportError
:
...
@@ -26,6 +27,12 @@ import gevent
...
@@ -26,6 +27,12 @@ import gevent
from
gevent.server
import
StreamServer
from
gevent.server
import
StreamServer
from
gevent.hub
import
GreenletExit
,
PY3
,
reraise
from
gevent.hub
import
GreenletExit
,
PY3
,
reraise
from
functools
import
partial
if
PY3
:
unquote_latin1
=
partial
(
unquote
,
encoding
=
'latin-1'
)
else
:
unquote_latin1
=
unquote
_no_undoc_members
=
True
# Don't put undocumented things into sphinx
_no_undoc_members
=
True
# Don't put undocumented things into sphinx
__all__
=
[
__all__
=
[
...
@@ -949,7 +956,7 @@ class WSGIHandler(object):
...
@@ -949,7 +956,7 @@ class WSGIHandler(object):
path
,
query
=
self
.
path
.
split
(
'?'
,
1
)
path
,
query
=
self
.
path
.
split
(
'?'
,
1
)
else
:
else
:
path
,
query
=
self
.
path
,
''
path
,
query
=
self
.
path
,
''
env
[
'PATH_INFO'
]
=
unquote
(
path
,
encoding
=
'latin-1'
)
env
[
'PATH_INFO'
]
=
unquote
_latin1
(
path
)
env
[
'QUERY_STRING'
]
=
query
env
[
'QUERY_STRING'
]
=
query
if
self
.
headers
.
typeheader
is
not
None
:
if
self
.
headers
.
typeheader
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment