template_response: header value must be a list
This commit is contained in:
parent
89190dca6c
commit
42bf45aa29
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue