diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-08-24 21:26:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 21:26:57 +0200 |
commit | fb1c7b7deacaf9d35cf26c99f46b6354a4420d68 (patch) | |
tree | 6a01a935f30dab40b75afd082a0a122a61443d1d /cli/tests/unit/flash_test.ts | |
parent | 348291f5eccfa19fde67e16bc5d706b5f465da09 (diff) |
fix(unstable): finish HTTP response for 205 and 304 responses (#15584)
This commit fixes "Deno.serve()" API by making sure that
205 and 304 responses end with "\r\n\r\n".
Diffstat (limited to 'cli/tests/unit/flash_test.ts')
-rw-r--r-- | cli/tests/unit/flash_test.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tests/unit/flash_test.ts b/cli/tests/unit/flash_test.ts index 89e91fd7a..07be6dfcc 100644 --- a/cli/tests/unit/flash_test.ts +++ b/cli/tests/unit/flash_test.ts @@ -1844,6 +1844,7 @@ Deno.test( const msg = decoder.decode(buf.subarray(0, readResult)); assert(msg.startsWith("HTTP/1.1 304 Not Modified")); + assert(msg.endsWith("\r\n\r\n")); conn.close(); |