Backed out changeset 0e6e9a97df17
This commit is contained in:
2
AUTHORS
2
AUTHORS
@@ -26,7 +26,7 @@ Thanks To
|
|||||||
* Chuck Thier, reporting a bug in processes.py
|
* Chuck Thier, reporting a bug in processes.py
|
||||||
* Brantley Harris, reporting bug #4
|
* Brantley Harris, reporting bug #4
|
||||||
* Taso Du Val, reproing an exception squelching bug, saving children's lives ;-)
|
* Taso Du Val, reproing an exception squelching bug, saving children's lives ;-)
|
||||||
* R. Tyler Ballance, bug report on tpool on Windows, help with improving corolocal module, keen eye for redundancy
|
* R. Tyler Ballance, bug report on tpool on Windows, help with improving corolocal module
|
||||||
* Sergey Shepelev, PEP 8 police :-), reporting bug #5
|
* Sergey Shepelev, PEP 8 police :-), reporting bug #5
|
||||||
* Luci Stanescu, for reporting twisted hub bug
|
* Luci Stanescu, for reporting twisted hub bug
|
||||||
* Marcus Cavanaugh, for test case code that has been incredibly useful in tracking down bugs
|
* Marcus Cavanaugh, for test case code that has been incredibly useful in tracking down bugs
|
||||||
|
@@ -280,9 +280,9 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||||||
finally:
|
finally:
|
||||||
if hasattr(result, 'close'):
|
if hasattr(result, 'close'):
|
||||||
result.close()
|
result.close()
|
||||||
if self.environ['wsgi.input'].position < self.environ.get('CONTENT_LENGTH', 0):
|
if self.environ['eventlet.input'].position < self.environ.get('CONTENT_LENGTH', 0):
|
||||||
## Read and discard body
|
## Read and discard body
|
||||||
self.environ['wsgi.input'].read()
|
self.environ['eventlet.input'].read()
|
||||||
finish = time.time()
|
finish = time.time()
|
||||||
|
|
||||||
self.server.log_message('%s - - [%s] "%s" %s %s %.6f' % (
|
self.server.log_message('%s - - [%s] "%s" %s %s %.6f' % (
|
||||||
@@ -348,7 +348,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||||||
wfile = None
|
wfile = None
|
||||||
wfile_line = None
|
wfile_line = None
|
||||||
chunked = env.get('HTTP_TRANSFER_ENCODING', '').lower() == 'chunked'
|
chunked = env.get('HTTP_TRANSFER_ENCODING', '').lower() == 'chunked'
|
||||||
env['wsgi.input'] = Input(
|
env['wsgi.input'] = env['eventlet.input'] = Input(
|
||||||
self.rfile, length, wfile=wfile, wfile_line=wfile_line,
|
self.rfile, length, wfile=wfile, wfile_line=wfile_line,
|
||||||
chunked_input=chunked)
|
chunked_input=chunked)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user