mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-07-18 21:47:18 +00:00
mark beginning of content at beginning of test payload, now that Recorder tries to auto-detect
This commit is contained in:
@@ -137,6 +137,7 @@ public abstract class ContentExtractorTestBase extends ProcessorTestBase {
|
||||
byte[] b = content.getBytes(charset);
|
||||
ByteArrayInputStream bais = new ByteArrayInputStream(b);
|
||||
InputStream is = recorder.inputWrap(bais);
|
||||
recorder.markContentBegin();
|
||||
for (int x = is.read(); x >= 0; x = is.read());
|
||||
is.close();
|
||||
return recorder;
|
||||
|
||||
Reference in New Issue
Block a user