summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2018-11-04 11:07:34 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2018-11-04 11:07:34 +0000
commit5e648dafc3e71166192649c0c5a67640bc2f72c5 (patch)
treebc8e366cf8514446fee2d92b4c3b0e92deb48514 /cgi-bin
parentd1ea258f5180843a6309cf63a860aad01b4c29b7 (diff)
downloadnetsurf-test-5e648dafc3e71166192649c0c5a67640bc2f72c5.tar.gz
netsurf-test-5e648dafc3e71166192649c0c5a67640bc2f72c5.tar.bz2
How about python though?
Diffstat (limited to 'cgi-bin')
-rwxr-xr-xcgi-bin/auth.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index e8c9fec..a4dfda9 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -4,7 +4,7 @@ import cgi
import cgitb
cgitb.enable()
-auth = cgi.parse_header(os.environ("HTTP_AUTHORIZATION"))
+auth = cgi.parse_header(os.getenv("HTTP_AUTHORIZATION") or "")
print("Content-Type: text/plain")
print("")