From 89fba67eb09bcb580ffcbe2c0d692f83923b1c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 16 Mar 2015 10:41:04 +0100 Subject: [PATCH] Added X-Clacks-Overhead header to commemorate Sir Terry For as long as his name is still passed along the Clacks, Death can't have him. -- "Going Postal", Chapter 4 Prologue RIP Terry Pratchett See also http://gnuterrypratchett.com/ --- src/octoprint/server/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 93455f45..206d17f6 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -95,6 +95,7 @@ def after_request(response): # send no-cache headers with all POST responses if request.method == "POST": response.cache_control.no_cache = True + response.headers.add("X-Clacks-Overhead", "GNU Terry Pratchett") return response