aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathoc.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-01-19 18:20:01 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-01-19 18:20:01 +1300
commit26d6b189fc0a58375d46898ad57abadba44bb4d0 (patch)
treefd58113263b50f7dc957060d8aa6812b6d4ec22c /libpathod/pathoc.py
parent25ed5537dad2a6b339ccd5945c0ed232ed5ab035 (diff)
downloadmitmproxy-26d6b189fc0a58375d46898ad57abadba44bb4d0.tar.gz
mitmproxy-26d6b189fc0a58375d46898ad57abadba44bb4d0.tar.bz2
mitmproxy-26d6b189fc0a58375d46898ad57abadba44bb4d0.zip
Pyflakes cleanup, adjust requirements.txt
Diffstat (limited to 'libpathod/pathoc.py')
-rw-r--r--libpathod/pathoc.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py
index c926f15f..0769b43c 100644
--- a/libpathod/pathoc.py
+++ b/libpathod/pathoc.py
@@ -1,5 +1,4 @@
import sys, os
-import json
from netlib import tcp, http
import netlib.utils
import language, utils
@@ -45,7 +44,7 @@ class Pathoc(tcp.TCPClient):
parsed = http.parse_response_line(l)
if not parsed[1] == 200:
raise PathocError("Proxy CONNECT failed: %s - %s"%(parsed[1], parsed[2]))
- headers = http.read_headers(self.rfile)
+ http.read_headers(self.rfile)
def connect(self, connect_to=None):
"""
@@ -69,7 +68,7 @@ class Pathoc(tcp.TCPClient):
language.FileAccessDenied.
"""
r = language.parse_request(self.settings, spec)
- ret = language.serve(r, self.wfile, self.settings, self.host)
+ language.serve(r, self.wfile, self.settings, self.host)
self.wfile.flush()
return Response(*http.read_response(self.rfile, r.method, None))