Merge pull request #52 from cjneasbi/master
Fixed a bug causing an AttributeError when request is set to false but response not None in ProxyHandler.handle_request
This commit is contained in:
commit
4ce309107a
|
@ -192,7 +192,7 @@ class ProxyHandler(tcp.BaseHandler):
|
||||||
if response is None:
|
if response is None:
|
||||||
return
|
return
|
||||||
self.send_response(response)
|
self.send_response(response)
|
||||||
if http.request_connection_close(request.httpversion, request.headers):
|
if request and http.request_connection_close(request.httpversion, request.headers):
|
||||||
return
|
return
|
||||||
# We could keep the client connection when the server
|
# We could keep the client connection when the server
|
||||||
# connection needs to go away. However, we want to mimic
|
# connection needs to go away. However, we want to mimic
|
||||||
|
|
Loading…
Reference in New Issue