From b5bc63e76befeff2b2dc0f1e04cbd1b83c81663c Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 4 Sep 2020 14:46:27 +0200 Subject: [PATCH] fix cache-control header --- owrx/controllers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/controllers/__init__.py b/owrx/controllers/__init__.py index c00eebd..8d227c3 100644 --- a/owrx/controllers/__init__.py +++ b/owrx/controllers/__init__.py @@ -16,7 +16,7 @@ class Controller(object): if last_modified is not None: headers["Last-Modified"] = last_modified.astimezone(tz=timezone.utc).strftime("%a, %d %b %Y %H:%M:%S GMT") if max_age is not None: - headers["Cache-Control"] = "max-age: {0}".format(max_age) + headers["Cache-Control"] = "max-age={0}".format(max_age) for key, value in headers.items(): self.handler.send_header(key, value) self.handler.end_headers()