[v8.x] http: fix error check in `Execute()` by mscdex · Pull Request #25938 · nodejs/node
nodejs-github-bot
added
c++
v8.x labels
Feb 5, 2019
addaleax
changed the title
http: fix error check in
[v8.x] http: fix error check in Execute()Execute()
BethGriggs pushed a commit that referenced this pull request
Mar 20, 2019`http_parser_execute(..., nullptr, 0)` returns either `0` or `1`. The expectation is that no error must be returned if it is `0`, and if it is `1` - a `Error` object must be returned back to user. The introduction of `llhttp` and the refactor that happened during it accidentally removed the error-returning code. This commit reverts it back to its original state. Backport-PR-URL: #25938 Fix: #24585 PR-URL: #24738 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
mscdex
deleted the
v8-http-fix-parser-execute-error-check
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters