mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
Fuzzing, and fixes for errors found with fuzzing.
This commit is contained in:
@@ -237,6 +237,8 @@ class ProxyHandler(tcp.BaseHandler):
|
||||
continue
|
||||
else:
|
||||
raise
|
||||
except http.HttpError, v:
|
||||
raise ProxyError(502, "Invalid server response.")
|
||||
else:
|
||||
break
|
||||
|
||||
@@ -278,7 +280,6 @@ class ProxyHandler(tcp.BaseHandler):
|
||||
)
|
||||
else:
|
||||
self.log(cc, cc.error)
|
||||
|
||||
if isinstance(e, ProxyError):
|
||||
self.send_error(e.code, e.msg, e.headers)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user