If the body is a chunked encoded response, and we convert it to have a content-length header, I believe we don't produce a correct value for the CL: header. The code is
value_set_int(MIME_FIELD_CONTENT_LENGTH, MIME_LEN_CONTENT_LENGTH, value);
but I'm fairly certain we want the equivalent of value_set_int64() (which doesn't exist). Marking this one for v2.1.4, since it most likely doesn't work properly for > 2^31 chunked encoded objects.