Commit bcfb5154 authored by Giorgos Verigakis's avatar Giorgos Verigakis
Browse files

Date header is only required for the test-server

parent cbc03cb3
......@@ -132,7 +132,8 @@ def update_response_headers(request, response):
else:
response['Content-Type'] = 'application/json'
response['Date'] = format_date_time(time())
if request.META.get('SERVER_NAME') == 'testserver':
response['Date'] = format_date_time(time())
def render_metadata(request, metadata, use_values=False, status=200):
if request.serialization == 'xml':
......
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