summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>