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
24ace279
Commit
24ace279
authored
Apr 22, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pywsgi: rename INTERNAL_SERVER_ERROR to _INTERNAL_SERVER_ERROR
parent
941de217
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gevent/pywsgi.py
gevent/pywsgi.py
+3
-3
No files found.
gevent/pywsgi.py
View file @
24ace279
...
...
@@ -44,12 +44,12 @@ _monthname = [None, # Dummy so we can use 1-based month numbers
_INTERNAL_ERROR_STATUS
=
'500 Internal Server Error'
INTERNAL_ERROR_RESPONSE
=
"""HTTP/1.0 %s
_INTERNAL_ERROR_RESPONSE
=
"""HTTP/1.0 500 Internal Server Error
Connection: close
Content-type: text/plain
Content-length: 21
Internal Server Error"""
.
replace
(
'
\
n
'
,
'
\
r
\
n
'
)
%
_INTERNAL_ERROR_STATUS
Internal Server Error"""
.
replace
(
'
\
n
'
,
'
\
r
\
n
'
)
def
format_date_time
(
timestamp
):
...
...
@@ -247,7 +247,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
self
.
close_connection
=
1
self
.
server
.
log_message
(
traceback
.
format_exc
())
if
not
self
.
response_length
:
self
.
wfile
.
write
(
INTERNAL_ERROR_RESPONSE
)
self
.
wfile
.
write
(
_
INTERNAL_ERROR_RESPONSE
)
finally
:
if
hasattr
(
result
,
'close'
):
result
.
close
()
...
...
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