mirror of
https://github.com/servo/servo.git
synced 2025-10-12 14:30:25 +01:00
Update web-platform-tests to revision e91d7d8c9a1f14438e44000dcd05ce6e658e4ae5
This commit is contained in:
parent
242e7e2630
commit
1a3fdf7a13
567 changed files with 9823 additions and 2333 deletions
|
@ -1,11 +1,11 @@
|
|||
def main(request, response):
|
||||
allow = request.GET.first("allow", "false")
|
||||
allow = request.GET.first(b"allow", b"false")
|
||||
|
||||
headers = [("Content-Type", "application/javascript")]
|
||||
if allow != "false":
|
||||
headers.append(("Access-Control-Allow-Origin", "*"))
|
||||
headers = [(b"Content-Type", b"application/javascript")]
|
||||
if allow != b"false":
|
||||
headers.append((b"Access-Control-Allow-Origin", b"*"))
|
||||
|
||||
body = """
|
||||
body = b"""
|
||||
function handleRejectedPromise(promise) {
|
||||
promise.catch(() => {});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue