This commit is contained in:
Thomas Kriechbaumer 2016-02-14 14:43:48 +01:00
parent 5e65b933b2
commit efcfc62b73
5 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -13,7 +13,6 @@ from .. import version
from .flow import Flow
class MessageMixin(object):
def get_decoded_content(self):

View File

@ -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:

View File

@ -3,6 +3,7 @@ from netlib.utils import Serializable
class StateObject(Serializable):
"""
An object with serializable state.

View File

@ -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')