Update web-platform-tests to revision 5934bd3aca20a07917ad46fe7cebe10c68d5e497

This commit is contained in:
WPT Sync Bot 2020-07-18 08:22:00 +00:00
parent e41f1662dc
commit 64b58d76c6
67 changed files with 656 additions and 278 deletions

View file

@ -2,13 +2,13 @@ def main(request, response):
user = request.auth.username
password = request.auth.password
if user == "user" and password == "password":
return "Authentication done"
if user == b"user" and password == b"password":
return b"Authentication done"
realm = "test"
if "realm" in request.GET:
realm = request.GET.first("realm")
realm = b"test"
if b"realm" in request.GET:
realm = request.GET.first(b"realm")
return ((401, "Unauthorized"),
[("WWW-Authenticate", 'Basic realm="' + realm + '"')],
"Please login with credentials 'user' and 'password'")
return ((401, b"Unauthorized"),
[(b"WWW-Authenticate", b'Basic realm="' + realm + b'"')],
b"Please login with credentials 'user' and 'password'")