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

Adding an option to disable HTTP streaming #3777

Merged
merged 18 commits into from
Jul 1, 2022
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
Prev Previous commit
Next Next commit
Verifying content-length header in dev
  • Loading branch information
Tony Sullivan committed Jun 30, 2022
commit 6dde2f9637bad4d93cb1c0056c90608cb2f62c93
2 changes: 2 additions & 0 deletions packages/astro/test/streaming.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ describe('Streaming disabled', () => {

expect(res.status).to.equal(200);
expect(res.headers.get('content-type')).to.equal('text/html');
expect(res.headers.has('content-length')).to.equal(true);
expect(parseInt(res.headers.get('content-length'))).to.be.greaterThan(0);

let body = await res.text();
expect(body.startsWith('<!DOCTYPE html>')).to.equal(true);
Expand Down