X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_message_parser.c;h=23cf4f8b79357779c82be746f16b8d1e063d76e5;hp=319f089ab6d7b7865eac94df566438e950ddadb0;hb=32580f1d50d0481c9069b65ef30d0acd59ada3bb;hpb=cdfa5298b064787eebbdce77a46b5ae77b3617ae diff --git a/php_http_message_parser.c b/php_http_message_parser.c index 319f089..23cf4f8 100644 --- a/php_http_message_parser.c +++ b/php_http_message_parser.c @@ -399,7 +399,7 @@ PHP_HTTP_API php_http_message_parser_state_t php_http_message_parser_parse(php_h len = buffer->used; cut = len; - php_http_message_parser_state_push(parser, 2, !buffer->used?PHP_HTTP_MESSAGE_PARSER_STATE_BODY_DONE:PHP_HTTP_MESSAGE_PARSER_STATE_BODY_DUMB, PHP_HTTP_MESSAGE_PARSER_STATE_BODY); + php_http_message_parser_state_push(parser, 2, PHP_HTTP_MESSAGE_PARSER_STATE_BODY_DONE, PHP_HTTP_MESSAGE_PARSER_STATE_BODY); break; }