From 42bf45aa295c5ffb1a40d6ff2351c7321b1c1a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Tue, 28 Oct 2014 11:28:57 +0100 Subject: [PATCH] template_response: header value must be a list --- mandaye/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mandaye/response.py b/mandaye/response.py index 9e69832..1668b60 100644 --- a/mandaye/response.py +++ b/mandaye/response.py @@ -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)