Skip to content

Commit

Permalink
Merge pull request #5 from nlnwa/collections
Browse files Browse the repository at this point in the history
Fixed wrong formatting of warc-refers-to-target-uri
  • Loading branch information
maeb authored Feb 22, 2019
2 parents 2588489 + ff8c8c6 commit 1f6a352
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public URI writeWarcHeader(final RecordData recordData) throws IOException {
record.header.addHeader(FN_WARC_REFERS_TO, Util.formatIdentifierAsUrn(recordData.getRevisitRef().getWarcId()));
if (!recordData.getRevisitRef().getTargetUri().isEmpty() && recordData.getRevisitRef().hasDate()) {
record.header.addHeader(FN_WARC_REFERS_TO_TARGET_URI,
Util.formatIdentifierAsUrn(recordData.getRevisitRef().getTargetUri()));
recordData.getRevisitRef().getTargetUri());
record.header.addHeader(FN_WARC_REFERS_TO_DATE,
Date.from(ProtoUtils.tsToOdt(recordData.getRevisitRef().getDate()).toInstant()), null);
}
Expand Down

0 comments on commit 1f6a352

Please sign in to comment.