Changed is ALREADY_HANDLED test to isinstance test
This commit is contained in:
@@ -312,7 +312,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
result = self.application(self.environ, start_response)
|
result = self.application(self.environ, start_response)
|
||||||
if result is ALREADY_HANDLED:
|
if isinstance(result, _AlreadyHandled):
|
||||||
self.close_connection = 1
|
self.close_connection = 1
|
||||||
return
|
return
|
||||||
if not headers_sent and hasattr(result, '__len__') and \
|
if not headers_sent and hasattr(result, '__len__') and \
|
||||||
|
Reference in New Issue
Block a user