diff options
| author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-01 10:40:19 +0200 | 
|---|---|---|
| committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-01 14:37:32 +0200 | 
| commit | db02553e2afee044faac898d12bd8d1adadbcd21 (patch) | |
| tree | 1e5910599b7b47c527528f03f896efd2fbf7c907 /libmproxy/console/flowlist.py | |
| parent | 8a051511706e2e62c32e0f70e05ecab11d444b6f (diff) | |
| download | mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.tar.gz mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.tar.bz2 mitmproxy-db02553e2afee044faac898d12bd8d1adadbcd21.zip  | |
move code from mitmproxy to netlib
Diffstat (limited to 'libmproxy/console/flowlist.py')
| -rw-r--r-- | libmproxy/console/flowlist.py | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/libmproxy/console/flowlist.py b/libmproxy/console/flowlist.py index 46cd0de1..2b77f4a3 100644 --- a/libmproxy/console/flowlist.py +++ b/libmproxy/console/flowlist.py @@ -1,6 +1,9 @@  from __future__ import absolute_import  import urwid +  from netlib import http +import netlib.utils +  from . import common, signals @@ -219,7 +222,7 @@ class ConnectionItem(urwid.WidgetWrap):          elif key == "U":              for f in self.state.flows:                  self.state.set_flow_marked(f, False) -            signals.flowlist_change.send(self)        +            signals.flowlist_change.send(self)          elif key == "V":              if not self.flow.modified():                  signals.status_message.send(message="Flow not modified.") @@ -321,7 +324,7 @@ class FlowListBox(urwid.ListBox):          )      def new_request(self, url, method): -        parts = http.parse_url(str(url)) +        parts = netlib.utils.parse_url(str(url))          if not parts:              signals.status_message.send(message="Invalid Url")              return  | 
