Sign in
chromium
/
external
/
w3c
/
web-platform-tests
/
refs/heads/DOMParser-interface
/
.
/
fetch
/
api
/
basic
/
header-value-null-byte.any.js
blob: 741d83bf7aaa55cba52d69297d61b70f7b3a5cdb [
file
] [
log
] [
blame
] [
edit
]
// 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"
);