mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #2082 from tarnacious/master
Call error handler and mark flow on HTTPException
This commit is contained in:
commit
2a1ed7f3eb
@ -276,6 +276,8 @@ class HttpLayer(base.Layer):
|
||||
# We optimistically guess there might be an HTTP client on the
|
||||
# other end
|
||||
self.send_error_response(400, repr(e))
|
||||
f.error = flow.Error(str(e))
|
||||
self.channel.ask("error", f)
|
||||
raise exceptions.ProtocolException(
|
||||
"HTTP protocol error in client request: {}".format(e)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user