Skip to content

Commit

Permalink
Merge pull request #7010 from JingMa87/7009-double-set-name-encoding
Browse files Browse the repository at this point in the history
#7009 Removed one of the redundant encoding functions.
  • Loading branch information
kcondon authored Jul 2, 2020
2 parents e20c094 + 1da6cc6 commit bd736d2
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ public OaiHandler(HarvestingClient harvestingClient) throws OaiHandlerException
this.metadataPrefix = harvestingClient.getMetadataPrefix();

if (!StringUtils.isEmpty(harvestingClient.getHarvestingSet())) {
try {
this.setName = URLEncoder.encode(harvestingClient.getHarvestingSet(), "UTF-8");
} catch (UnsupportedEncodingException uee) {
throw new OaiHandlerException("Harvesting set: unsupported (non-UTF8) encoding");
}
this.setName = harvestingClient.getHarvestingSet();
}

this.fromDate = harvestingClient.getLastNonEmptyHarvestTime();
Expand Down

0 comments on commit bd736d2

Please sign in to comment.