Skip to content

Error if message is bigger than Content-Length#39133

Closed
betochf wants to merge 12 commits into
nodejs:mainfrom
betochf:issue/39041
Closed

Error if message is bigger than Content-Length#39133
betochf wants to merge 12 commits into
nodejs:mainfrom
betochf:issue/39041

Conversation

@betochf

@betochf betochf commented Jun 24, 2021

Copy link
Copy Markdown

Pr for issue #39041

The test for the changes is very simple, it just contains a 200 request with a header specifying the "Content-Lenght", in this case with a size of 2 bytes, with a response of 4 so the error could be triggered.

tests:

  • If we change the value of the Content-Lenght for the actual one or a bigger one, we have no error.
  • Finally, we do a request with no headers just to prove that the code still running, even with the new #changes.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

errors Issues and PRs related to JavaScript errors originated in Node.js core. http Issues or PRs related to the http subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants