diff options
Diffstat (limited to 'test/wpt/tests/fetch/content-length/too-long.window.js')
-rw-r--r-- | test/wpt/tests/fetch/content-length/too-long.window.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/wpt/tests/fetch/content-length/too-long.window.js b/test/wpt/tests/fetch/content-length/too-long.window.js new file mode 100644 index 0000000..f8cefaa --- /dev/null +++ b/test/wpt/tests/fetch/content-length/too-long.window.js @@ -0,0 +1,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"); |