mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-12 16:55:52 +00:00
need to close the recorder here so it can calculate the content length properly
This commit is contained in:
@@ -138,6 +138,7 @@ public class ContentDigestHistoryTest extends TmpDirTestCase {
|
||||
// give Recorder some content so that getContentLength() returns non-zero.
|
||||
InputStream is = rec.inputWrap(new ByteArrayInputStream("HTTP/1.0 200 OK\r\n\r\ntext.".getBytes()));
|
||||
is.read(new byte[1024]);
|
||||
is.close();
|
||||
|
||||
assertFalse(loader().shouldProcess(curi1));
|
||||
assertFalse(storer().shouldProcess(curi1));
|
||||
|
||||
Reference in New Issue
Block a user