Skip to content

Commit

Permalink
Reorg to put web app in its own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cortesi committed Sep 9, 2014
1 parent e5412e9 commit 7698293
Show file tree
Hide file tree
Showing 20 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions libmproxy/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
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

Expand Down Expand Up @@ -727,7 +728,7 @@ def handle_responseheaders(self, f):
self.stream_large_bodies.run(f, False)

f.reply()
return f
return f

def handle_response(self, f):
self.state.add_response(f)
Expand Down
Empty file added libmproxy/web/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion libmproxy/app.py → libmproxy/web/app.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7698293

Please sign in to comment.