aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2020-07-18 08:22:00 +0000
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2020-07-18 10:41:28 +0000
commit64b58d76c6691ce0e0a5d4e9c318d8eaea45bd18 (patch)
tree3b3b8be38074676d44ce777e1793e1e226da8e23 /tests/wpt/web-platform-tests/fetch/api/resources/authentication.py
parente41f1662dc9d699082ba052a52c2152ac659cb44 (diff)
downloadservo-64b58d76c6691ce0e0a5d4e9c318d8eaea45bd18.tar.gz
servo-64b58d76c6691ce0e0a5d4e9c318d8eaea45bd18.zip
Update web-platform-tests to revision 5934bd3aca20a07917ad46fe7cebe10c68d5e497
Diffstat (limited to 'tests/wpt/web-platform-tests/fetch/api/resources/authentication.py')
-rw-r--r--tests/wpt/web-platform-tests/fetch/api/resources/authentication.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py b/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py
index b65047d7657..8b6b00b0873 100644
--- a/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py
+++ b/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py
@@ -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'")