Sign in
webkit
/
WebKit
/
5ee6cb110e6b3603e89e96274f53a79656dc43d1
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
fetch
/
api
/
basic
/
header-value-null-byte.any.js
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"
);