Commit f888d3ef authored by Andreas Jung's avatar Andreas Jung

added creation of ETAG header

parent 6b45a238
......@@ -161,6 +161,9 @@ class ZServerHTTPResponse(HTTPResponse):
append("HTTP/%s %s" % (self._http_version or '1.0' , status))
if headers.has_key('status'):
del headers['status']
if not headers.has_key("etag"):
self.setHeader('ETAG','')
# add zserver headers
append('Server: %s' % self._server_version)
......
......@@ -161,6 +161,9 @@ class ZServerHTTPResponse(HTTPResponse):
append("HTTP/%s %s" % (self._http_version or '1.0' , status))
if headers.has_key('status'):
del headers['status']
if not headers.has_key("etag"):
self.setHeader('ETAG','')
# add zserver headers
append('Server: %s' % self._server_version)
......
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