From 728d5caa22945d935bee24f39770b10763244cf6 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 12 Jun 2016 10:29:12 +1200 Subject: Fold mitmproxy.version and pathod.version into netlib.version --- pathod/protocols/http.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pathod/protocols/http.py') 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() -- cgit v1.2.3