mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Reorg to put web app in its own directory
This commit is contained in:
parent
e5412e9dd9
commit
76982937a6
@ -9,7 +9,8 @@ import flask
|
||||
import requests
|
||||
from netlib import odict, wsgi
|
||||
import netlib.http
|
||||
from . import controller, protocol, tnetstring, filt, script, version, app
|
||||
from . import controller, protocol, tnetstring, filt, script, version
|
||||
from .web import app
|
||||
from .protocol import http, handle
|
||||
from .proxy.config import parse_host_pattern
|
||||
|
||||
@ -727,7 +728,7 @@ class FlowMaster(controller.Master):
|
||||
self.stream_large_bodies.run(f, False)
|
||||
|
||||
f.reply()
|
||||
return f
|
||||
return f
|
||||
|
||||
def handle_response(self, f):
|
||||
self.state.add_response(f)
|
||||
|
0
libmproxy/web/__init__.py
Normal file
0
libmproxy/web/__init__.py
Normal file
@ -1,7 +1,7 @@
|
||||
from __future__ import absolute_import
|
||||
import flask
|
||||
import os
|
||||
from .proxy import config
|
||||
from ..proxy import config
|
||||
|
||||
mapp = flask.Flask(__name__)
|
||||
mapp.debug = True
|
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 197 KiB |
Loading…
Reference in New Issue
Block a user