diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2018-11-04 11:07:34 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2018-11-04 11:07:34 +0000 |
commit | 5e648dafc3e71166192649c0c5a67640bc2f72c5 (patch) | |
tree | bc8e366cf8514446fee2d92b4c3b0e92deb48514 /cgi-bin | |
parent | d1ea258f5180843a6309cf63a860aad01b4c29b7 (diff) | |
download | netsurf-test-5e648dafc3e71166192649c0c5a67640bc2f72c5.tar.gz netsurf-test-5e648dafc3e71166192649c0c5a67640bc2f72c5.tar.bz2 |
How about python though?
Diffstat (limited to 'cgi-bin')
-rwxr-xr-x | cgi-bin/auth.cgi | 2 |
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("") |