Merge pull request #584 from dlethin/feature/http_1_0

Make sure proxy returns the httpversion specified in the request
This commit is contained in:
Aldo Cortesi 2015-05-18 11:03:05 +12:00
commit 14341ffa19

View File

@ -1253,7 +1253,8 @@ class HTTPHandler(ProtocolHandler):
flow.server_conn = self.c.server_conn
self.c.establish_server_connection()
self.c.client_conn.send(
'HTTP/1.1 200 Connection established\r\n' +
('HTTP/%s.%s 200 ' % (request.httpversion[0],request.httpversion[1])) +
'Connection established\r\n' +
'Content-Length: 0\r\n' +
('Proxy-agent: %s\r\n' % self.c.config.server_version) +
'\r\n'