From cc544429e0cacd2c039c643ed55f07967a96c53c Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 2 Aug 2019 10:50:11 +0100 Subject: cookies.cgi: Move where we output the header Signed-off-by: Daniel Silverstone --- cgi-bin/cookies.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cgi-bin/cookies.cgi b/cgi-bin/cookies.cgi index c8fe80a..3a701aa 100755 --- a/cgi-bin/cookies.cgi +++ b/cgi-bin/cookies.cgi @@ -9,6 +9,9 @@ import json cgitb.enable() +print("Content-Type: text/html") +print("") + cookies = {} if os.environ.has_key('HTTP_COOKIE'): @@ -16,8 +19,6 @@ if os.environ.has_key('HTTP_COOKIE'): (key, value) = cookie.split('=') cookies[key] = value -print("Content-Type: text/html") -print("") print(""" Cookie test -- cgit v1.2.3