summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 10:50:11 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-08-02 10:50:11 +0100
commitcc544429e0cacd2c039c643ed55f07967a96c53c (patch)
treeee5427981c42a932cbc0b686ec1eddfecc7caee2 /cgi-bin
parentd2caeceeceb3fcb27aefa828ebe40a39b334ea96 (diff)
downloadnetsurf-test-cc544429e0cacd2c039c643ed55f07967a96c53c.tar.gz
netsurf-test-cc544429e0cacd2c039c643ed55f07967a96c53c.tar.bz2
cookies.cgi: Move where we output the header
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'cgi-bin')
-rwxr-xr-xcgi-bin/cookies.cgi5
1 files 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("""
<html>
<head><title>Cookie test</title></head>