Skip to content

Commit

Permalink
Merge pull request #82 from kris-sigur/HER-2071
Browse files Browse the repository at this point in the history
Fix for HER-2071
  • Loading branch information
nlevitt committed Jul 25, 2014
2 parents 1c6746c + 8edebc0 commit e7b034c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ protected URI writeRevisit(final WARCWriter w,

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();
Expand All @@ -623,7 +623,6 @@ protected URI writeRevisit(final WARCWriter w,
final ANVLRecord headers,
final long contentLength)
throws IOException {

WARCRecordInfo recordInfo = new WARCRecordInfo();
recordInfo.setType(WARCRecordType.revisit);
recordInfo.setUrl(curi.toString());
Expand Down

0 comments on commit e7b034c

Please sign in to comment.