chromium/third_party/blink/web_tests/external/wpt/fetch/api/basic/header-value-null-byte.any.js

// 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");