mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2025-03-05 12:17:25 +00:00
Pass server HTTP version back to clients.
This commit is contained in:
parent
6ba5f0f35b
commit
236447c65f
@ -748,7 +748,7 @@ class Response(HTTPMsg):
|
||||
content = ""
|
||||
if self.request.client_conn.close:
|
||||
headers["connection"] = ["close"]
|
||||
proto = "HTTP/1.1 %s %s"%(self.code, str(self.msg))
|
||||
proto = "HTTP/%s.%s %s %s"%(self.httpversion[0], self.httpversion[1], self.code, str(self.msg))
|
||||
data = (proto, str(headers), content)
|
||||
return FMT%data
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user