Pass server HTTP version back to clients.
This commit is contained in:
parent
6ba5f0f35b
commit
236447c65f
|
@ -748,7 +748,7 @@ class Response(HTTPMsg):
|
||||||
content = ""
|
content = ""
|
||||||
if self.request.client_conn.close:
|
if self.request.client_conn.close:
|
||||||
headers["connection"] = ["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)
|
data = (proto, str(headers), content)
|
||||||
return FMT%data
|
return FMT%data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue