mirror of
https://github.com/servo/servo.git
synced 2025-06-26 10:04:33 +01:00
5 lines
241 B
JavaScript
5 lines
241 B
JavaScript
// META: global=window,worker
|
|
|
|
promise_test(t => {
|
|
return promise_rejects_js(t, TypeError, fetch("../../../xhr/resources/parse-headers.py?my-custom-header="+encodeURIComponent("x\0x")));
|
|
}, "Ensure fetch() rejects null bytes in headers");
|