Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
src: remove double check
Browse files Browse the repository at this point in the history
This is already included in `http_message_needs_eof`.

PR-URL: #248
Reviewed-By: Fedor Indutny <[email protected]>
  • Loading branch information
jscissr authored and indutny committed May 21, 2015
1 parent f6f436a commit 39ff097
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1857,8 +1857,7 @@ size_t http_parser_execute (http_parser *parser,
/* Content-Length header given and non-zero */
UPDATE_STATE(s_body_identity);
} else {
if (parser->type == HTTP_REQUEST ||
!http_message_needs_eof(parser)) {
if (!http_message_needs_eof(parser)) {
/* Assume content-length 0 - read the next */
UPDATE_STATE(NEW_MESSAGE());
CALLBACK_NOTIFY(message_complete);
Expand Down

0 comments on commit 39ff097

Please sign in to comment.