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
f4c35d56
Commit
f4c35d56
authored
May 15, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wsgi: do not pass request to prepare_env (it's already available as self.request)
parent
a2b850bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gevent/wsgi.py
gevent/wsgi.py
+4
-4
No files found.
gevent/wsgi.py
View file @
f4c35d56
...
...
@@ -78,7 +78,8 @@ class WSGIHandler(object):
if
log
is
not
None
:
log
.
write
(
self
.
format_request
(
*
args
)
+
'
\
n
'
)
def
prepare_env
(
self
,
req
):
def
prepare_env
(
self
):
req
=
self
.
request
env
=
self
.
server
.
get_environ
()
if
'?'
in
req
.
uri
:
path
,
query
=
req
.
uri
.
split
(
'?'
,
1
)
...
...
@@ -100,8 +101,7 @@ class WSGIHandler(object):
return
env
def
handle
(
self
):
req
=
self
.
request
env
=
self
.
prepare_env
(
req
)
env
=
self
.
prepare_env
()
try
:
try
:
result
=
self
.
server
.
application
(
env
,
self
.
start_response
)
...
...
@@ -116,7 +116,7 @@ class WSGIHandler(object):
traceback
.
print_exc
()
try
:
sys
.
stderr
.
write
(
'%s: Failed to handle request:
\
n
request = %s
\
n
application = %s
\
n
\
n
'
%
(
self
.
server
,
req
,
self
.
server
.
application
))
(
self
.
server
,
self
.
request
,
self
.
server
.
application
))
except
Exception
:
pass
# do not call self.end so that core.http replies with 500
...
...
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