Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(flash): Always send correct number of bytes when handling HEAD requests #17740

Merged
merged 2 commits into from
Feb 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Change test to fail the assertion from #17737
  • Loading branch information
kamilogorek committed Feb 11, 2023
commit dcbfeab9731fa3a8de9dfde9ed34e648b2675a44
4 changes: 2 additions & 2 deletions cli/tests/unit/flash_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ Deno.test(
const server = Deno.serve({
handler: () => {
promise.resolve();
return new Response("foo bar baz");
return new Response("NaN".repeat(100));
},
port: 4503,
signal: ac.signal,
Expand All @@ -1726,7 +1726,7 @@ Deno.test(
assert(readResult);
const msg = decoder.decode(buf.subarray(0, readResult));

assert(msg.endsWith("Content-Length: 11\r\n\r\n"));
assert(msg.endsWith("Content-Length: 300\r\n\r\n"));

conn.close();

Expand Down