mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
fix style
This commit is contained in:
parent
e31aa39fc2
commit
46d9cdd70a
@ -161,6 +161,7 @@ class Flows(RequestHandler):
|
|||||||
data=[_strip_content(f.get_state()) for f in self.state.flows]
|
data=[_strip_content(f.get_state()) for f in self.state.flows]
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
class DumpFlows(RequestHandler):
|
class DumpFlows(RequestHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
self.set_header("Content-Disposition", "attachment; filename=flows")
|
self.set_header("Content-Disposition", "attachment; filename=flows")
|
||||||
@ -182,6 +183,7 @@ class DumpFlows(RequestHandler):
|
|||||||
self.state.load_flows(FlowReader(bio).stream())
|
self.state.load_flows(FlowReader(bio).stream())
|
||||||
bio.close()
|
bio.close()
|
||||||
|
|
||||||
|
|
||||||
class ClearAll(RequestHandler):
|
class ClearAll(RequestHandler):
|
||||||
|
|
||||||
def post(self):
|
def post(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user