If there is no HTTP Content-Length header a LengthedBody with size 0 is created. Reproducible when parsing the response record in http_no_content_length_1.warc.gz.
Reason: LengthedBody.discardPushbackOnRead() does not return an instance of LengthedBody but of an anonymous class inside LengthedBody (eg. LengthedBody$1) and the check instanceof LengthedBody fails.
If there is no HTTP Content-Length header a LengthedBody with size 0 is created. Reproducible when parsing the response record in http_no_content_length_1.warc.gz.
Reason:
LengthedBody.discardPushbackOnRead()
does not return an instance of LengthedBody but of an anonymous class inside LengthedBody (eg.LengthedBody$1
) and the checkinstanceof LengthedBody
fails.