Commit 3c846bba authored by Amos Latteier's avatar Amos Latteier

Added defaults for http settings on HTTPResponse.

parent cd5d0060
......@@ -106,6 +106,11 @@ class ZServerHTTPResponse(HTTPResponse):
http_chunk=0
http_chunk_size=1024
# defaults
_http_version='1.0'
_http_connection='close'
_server_version='Zope/2.0 ZServer/2.0'
def __str__(self,
html_search=regex.compile('<html>',regex.casefold).search,
):
......
......@@ -106,6 +106,11 @@ class ZServerHTTPResponse(HTTPResponse):
http_chunk=0
http_chunk_size=1024
# defaults
_http_version='1.0'
_http_connection='close'
_server_version='Zope/2.0 ZServer/2.0'
def __str__(self,
html_search=regex.compile('<html>',regex.casefold).search,
):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment