Fix for HER-2071

This commit is contained in:
Kristinn Sigurðsson
2014-07-25 13:32:08 +00:00
parent d0ebd40578
commit 8edebc0943
@@ -608,7 +608,7 @@ public class WARCWriterProcessor extends WriterPoolProcessor implements WARCWrit
if (curi.getRevisitProfile().getProfileName().equals(PROFILE_REVISIT_IDENTICAL_DIGEST) ) {
// Save response from identical digest matches
curi.getRecorder().getRecordedInput().getContentBegin();
revisedLength = curi.getRecorder().getRecordedInput().getContentBegin();
revisedLength = revisedLength > 0
? revisedLength
: curi.getRecorder().getRecordedInput().getSize();
@@ -623,7 +623,6 @@ public class WARCWriterProcessor extends WriterPoolProcessor implements WARCWrit
final ANVLRecord headers,
final long contentLength)
throws IOException {
WARCRecordInfo recordInfo = new WARCRecordInfo();
recordInfo.setType(WARCRecordType.revisit);
recordInfo.setUrl(curi.toString());