diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-05 18:16:08 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-05 18:16:08 +0200 |
commit | b889e9e1a2576b0f0aadb4180dd6f4c75db204d6 (patch) | |
tree | 4705d7044e71e04f7595a541ebb5d7a5fcd9741b /libpathod/pathod.py | |
parent | a10acda80b7f4a1c590f012b39a7c0ee77e490b8 (diff) | |
download | mitmproxy-b889e9e1a2576b0f0aadb4180dd6f4c75db204d6.tar.gz mitmproxy-b889e9e1a2576b0f0aadb4180dd6f4c75db204d6.tar.bz2 mitmproxy-b889e9e1a2576b0f0aadb4180dd6f4c75db204d6.zip |
adjust to new netlib headers
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r-- | libpathod/pathod.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index bce0b66f..4b94ec91 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -4,9 +4,8 @@ import os import sys import threading import urllib -import time -from netlib import tcp, http, wsgi, certutils, websockets, odict +from netlib import tcp, http, certutils, websockets from netlib.http import http1, http2 from . import version, app, language, utils, log, protocols @@ -160,7 +159,7 @@ class PathodHandler(tcp.BaseHandler): request=dict( path=path, method=method, - headers=headers.lst, + headers=headers.fields, httpversion=httpversion, sni=self.sni, remote_address=self.address(), |