mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 22:28:59 +02:00
Automatic update from web-platform-testsFetch/XHR: response header value containing 0x00 As discussed in https://github.com/whatwg/xhr/issues/165 these should turn the response into a network error. -- wpt-commits: 3d172bc612e03a896b5611d9e9652f860995feef wpt-pr: 10424
5 lines
244 B
JavaScript
5 lines
244 B
JavaScript
// META: global=window,worker
|
|
|
|
promise_test(t => {
|
|
return promise_rejects(t, new TypeError(), fetch("../../../xhr/resources/parse-headers.py?my-custom-header="+encodeURIComponent("x\0x")));
|
|
}, "Ensure fetch() rejects null bytes in headers");
|