diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-12 10:29:12 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-12 10:29:12 +1200 |
commit | 728d5caa22945d935bee24f39770b10763244cf6 (patch) | |
tree | ba21cfd850f1d211bb04ab18a1f18c7c43fc3e03 /pathod/protocols | |
parent | c801f81373d5935f60bf950b1f266911a94ecf60 (diff) | |
download | mitmproxy-728d5caa22945d935bee24f39770b10763244cf6.tar.gz mitmproxy-728d5caa22945d935bee24f39770b10763244cf6.tar.bz2 mitmproxy-728d5caa22945d935bee24f39770b10763244cf6.zip |
Fold mitmproxy.version and pathod.version into netlib.version
Diffstat (limited to 'pathod/protocols')
-rw-r--r-- | pathod/protocols/http.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pathod/protocols/http.py b/pathod/protocols/http.py index 6eefb34f..7736df4b 100644 --- a/pathod/protocols/http.py +++ b/pathod/protocols/http.py @@ -1,6 +1,7 @@ +from netlib import version from netlib.exceptions import TlsException from netlib.http import http1 -from .. import version, language +from .. import language class HTTPProtocol(object): @@ -17,7 +18,7 @@ class HTTPProtocol(object): self.pathod_handler.wfile.write( 'HTTP/1.1 200 Connection established\r\n' + - ('Proxy-agent: %s\r\n' % version.NAMEVERSION) + + ('Proxy-agent: %s\r\n' % version.PATHOD) + '\r\n' ) self.pathod_handler.wfile.flush() |