mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 5934bd3aca20a07917ad46fe7cebe10c68d5e497
This commit is contained in:
parent
e41f1662dc
commit
64b58d76c6
67 changed files with 656 additions and 278 deletions
|
@ -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'")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue