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=66f7e8b6b937976c9c1d3dbfb86a90141b19b5c6;hpb=82c3dedd73be0292b8105b489359fc81fefce0a5 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; }