forked from nodejs/undici
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): skip body if method is
head
In case of HEAD method `client.parser.[HTTPParser.kOnHeadersComplete]` should tell the http parser to skip the body by returning 1 or true. Also `this._lastBody` assignment is skipped. See https://github.com/creationix/http-parser-js/blob/master/http-parser.js#L362
- Loading branch information
Showing
2 changed files
with
140 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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