diff options
author | Matt Mastracci <matthew@mastracci.com> | 2024-01-26 10:33:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-26 15:33:55 +0000 |
commit | c66f7b6d8d1d7481eee91d9ff898fd4eaddfdeea (patch) | |
tree | 7a79cf5b78ade0e8335a3c0800bd817601839f04 /cli/tests | |
parent | 98c537726e7a2bf8e9b4d339b853e8fdfba3f658 (diff) |
fix(ext/http): smarter handling of Accept-Encoding (#22130)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/unit/serve_test.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/unit/serve_test.ts b/cli/tests/unit/serve_test.ts index 9d06860e0..09bd86015 100644 --- a/cli/tests/unit/serve_test.ts +++ b/cli/tests/unit/serve_test.ts @@ -2649,6 +2649,13 @@ const compressionTestCases = [ out: { "Content-Type": "text/plain", "Cache-Control": "no-transform" }, expect: null, }, + { + name: "BadHeader", + length: 1024, + in: { "Accept-Encoding": "\x81" }, + out: { "Content-Type": "text/plain", "Cache-Control": "no-transform" }, + expect: null, + }, ]; for (const testCase of compressionTestCases) { |