template_response: header value must be a list

This commit is contained in:
Jérôme Schneider 2014-10-28 11:28:57 +01:00
parent 89190dca6c
commit 42bf45aa29
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ administrator and inform them of the time the error occurred."
serve_template("response.html", title=title, body=msg))
def template_response(templatename, values):
headers = HTTPHeader({'Content-Type': ['text/html'], 'Cache-Control': 'no-cache'})
headers = HTTPHeader({'Content-Type': ['text/html'], 'Cache-Control': ['no-cache']})
msg = serve_template(templatename, **values)
return HTTPResponse(200, 'OK', headers, msg)