Gitweb links:
...log
http://git.netsurf-browser.org/netsurf-test.git/shortlog/941f3a46a24008358989e9f61005ee82da6a8cc8
...commit
http://git.netsurf-browser.org/netsurf-test.git/commit/941f3a46a24008358989e9f61005ee82da6a8cc8
...tree
http://git.netsurf-browser.org/netsurf-test.git/tree/941f3a46a24008358989e9f61005ee82da6a8cc8
The branch, master has been updated
via 941f3a46a24008358989e9f61005ee82da6a8cc8 (commit)
from 6cef78f9f3cad33c10000d97409ad99eb9611d95 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf-test.git/commit/?id=941f3a46a24008358989e9f61005ee82da6a8cc8
commit 941f3a46a24008358989e9f61005ee82da6a8cc8
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
Move settings in the hope we get something useful
diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index 5f72447..c9faafc 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -4,6 +4,10 @@ import cgi
import cgitb
cgitb.enable()
+print('WWW-Authenticate: Basic realm="NetSurf Authentication test"')
+print('Content-Type: text/plain')
+print('')
+
import os
import base64
@@ -15,9 +19,6 @@ username = query.get("user", "foo")
password = query.get("pass", query.get("password", "bar"))
def badauth(reason="NOAUTH"):
- print('WWW-Authenticate: Basic realm="NetSurf Authentication test"')
- print('Content-Type: text/plain')
- print('')
print('result=BAD, reason={}'.format(reason))
raise SystemExit
@@ -37,7 +38,4 @@ else:
badauth("BADPASS")
-print("Content-Type: text/plain")
-print("")
-
print("result=GOOD, username={}, password={}".format(username, password))
-----------------------------------------------------------------------
Summary of changes:
cgi-bin/auth.cgi | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/cgi-bin/auth.cgi b/cgi-bin/auth.cgi
index 5f72447..c9faafc 100755
--- a/cgi-bin/auth.cgi
+++ b/cgi-bin/auth.cgi
@@ -4,6 +4,10 @@ import cgi
import cgitb
cgitb.enable()
+print('WWW-Authenticate: Basic realm="NetSurf Authentication test"')
+print('Content-Type: text/plain')
+print('')
+
import os
import base64
@@ -15,9 +19,6 @@ username = query.get("user", "foo")
password = query.get("pass", query.get("password", "bar"))
def badauth(reason="NOAUTH"):
- print('WWW-Authenticate: Basic realm="NetSurf Authentication test"')
- print('Content-Type: text/plain')
- print('')
print('result=BAD, reason={}'.format(reason))
raise SystemExit
@@ -37,7 +38,4 @@ else:
badauth("BADPASS")
-print("Content-Type: text/plain")
-print("")
-
print("result=GOOD, username={}, password={}".format(username, password))
--
NetSurf test cases
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org