blob: 9c223740c7807b43a6595ba81ef4f5b3c74c60b4 [file] [log] [blame]
// 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");