diff options
author | Martin Robinson <mrobinson@igalia.com> | 2023-06-26 10:48:30 +0200 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2023-06-26 10:48:30 +0200 |
commit | 1359e8e4624d10ceb0bf55bcb1cb2903141c6d38 (patch) | |
tree | 131f289fd18efb5b28653f6b5d83953f8e6c820b /tests/wpt/web-platform-tests/fetch/api/resources/authentication.py | |
parent | f017169ae482effc446384050e79b752bd9ddfe5 (diff) | |
download | servo-1359e8e4624d10ceb0bf55bcb1cb2903141c6d38.tar.gz servo-1359e8e4624d10ceb0bf55bcb1cb2903141c6d38.zip |
Move `tests/wpt/web-platform-tests` to `tests/wpt/tests`
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.py | 14 |
1 files changed, 0 insertions, 14 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 deleted file mode 100644 index 8b6b00b0873..00000000000 --- a/tests/wpt/web-platform-tests/fetch/api/resources/authentication.py +++ /dev/null @@ -1,14 +0,0 @@ -def main(request, response): - user = request.auth.username - password = request.auth.password - - if user == b"user" and password == b"password": - return b"Authentication done" - - realm = b"test" - if b"realm" in request.GET: - realm = request.GET.first(b"realm") - - return ((401, b"Unauthorized"), - [(b"WWW-Authenticate", b'Basic realm="' + realm + b'"')], - b"Please login with credentials 'user' and 'password'") |