In the H1 parseur, the body length was only incremented when the transfer
length was known. So when the content-length was specified or when the
transfer-encoding value was set to "chunk".
Now for messages with unknown transfer length, it is also incremented. It is
mandatory to be able to remove the extra field from the HTX message.
sz = b_data(srcbuf) - ofs;
sz = h1_copy_msg_data(dsthtx, srcbuf, ofs, sz, max, htxbuf);
total += sz;
+ h1m->body_len += sz;
}
return total;