summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/content-length/too-long.window.js
blob: f8cefaa9c23fbfdc9d8a302e7c950dabc6d8c5be (plain)
1
2
3
4
promise_test(async t => {
  const result = await fetch(`resources/content-length.py?length=${encodeURIComponent("Content-Length: 50")}`);
  await promise_rejects_js(t, TypeError, result.text());
}, "Content-Length header value of network response exceeds response body");