fix build with old libcurl
[m6w6/ext-http] / php_http_message_body.c
index de2693c3d1721eb9f95e7d1ad9f1cc4f416d3d23..fa9155110d776d37a0e1e26bed4ec5ef627acee6 100644 (file)
@@ -488,6 +488,7 @@ static size_t splitbody(void *opaque, char *buf, size_t len TSRMLS_DC)
                        if (!first_boundary) {
                                /* this is not the first boundary, read rest of this message */
                                php_http_buffer_append(&arg->buf, buf, real_boundary - buf);
+                               php_http_message_parser_parse(arg->parser, &arg->buf, 0, &arg->parser->message);
                        }
 
                        /* move after the boundary */