src: remove double check

This is already included in `http_message_needs_eof`.

PR-URL: https://github.com/joyent/http-parser/pull/248
Reviewed-By: Fedor Indutny <fedor@indutny.com>
make-http-max-header-size-gyp-configurable
Jan Schär 10 years ago committed by Fedor Indutny
parent f6f436a12e
commit 39ff0975c2

@ -1857,8 +1857,7 @@ reexecute:
/* Content-Length header given and non-zero */ /* Content-Length header given and non-zero */
UPDATE_STATE(s_body_identity); UPDATE_STATE(s_body_identity);
} else { } else {
if (parser->type == HTTP_REQUEST || if (!http_message_needs_eof(parser)) {
!http_message_needs_eof(parser)) {
/* Assume content-length 0 - read the next */ /* Assume content-length 0 - read the next */
UPDATE_STATE(NEW_MESSAGE()); UPDATE_STATE(NEW_MESSAGE());
CALLBACK_NOTIFY(message_complete); CALLBACK_NOTIFY(message_complete);

Loading…
Cancel
Save