mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
autopep8
This commit is contained in:
parent
5e65b933b2
commit
efcfc62b73
@ -707,7 +707,7 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
self.state.intercept) and not f.request.is_replay:
|
||||
f.intercept(self)
|
||||
else:
|
||||
#check if flow was intercepted within an inline script by flow.intercept()
|
||||
# check if flow was intercepted within an inline script by flow.intercept()
|
||||
if f.intercepted:
|
||||
f.intercept(self)
|
||||
else:
|
||||
|
@ -13,7 +13,6 @@ from .. import version
|
||||
from .flow import Flow
|
||||
|
||||
|
||||
|
||||
class MessageMixin(object):
|
||||
|
||||
def get_decoded_content(self):
|
||||
|
@ -234,7 +234,6 @@ class Http2Layer(Layer):
|
||||
stream.zombie = time.time()
|
||||
return
|
||||
|
||||
|
||||
frame, _ = hyperframe.frame.Frame.parse_frame_header(raw_frame[:9])
|
||||
|
||||
if is_server:
|
||||
|
@ -3,6 +3,7 @@ from netlib.utils import Serializable
|
||||
|
||||
|
||||
class StateObject(Serializable):
|
||||
|
||||
"""
|
||||
An object with serializable state.
|
||||
|
||||
|
@ -42,6 +42,7 @@ class APIError(tornado.web.HTTPError):
|
||||
|
||||
|
||||
class BasicAuth(object):
|
||||
|
||||
def set_auth_headers(self):
|
||||
self.set_status(401)
|
||||
self.set_header('WWW-Authenticate', 'Basic realm=MITMWeb')
|
||||
|
Loading…
Reference in New Issue
Block a user