Skip to content

Commit

Permalink
Changed to application json type (#7223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Camelia-Orcid authored Feb 15, 2025
1 parent 936e51d commit e21b955
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public boolean downloadOrgData() {
fileRotator.removeFileIfExists(localDataPath);
Map<String, String> headers = new HashMap<String, String>();
headers.put(HttpHeaders.USER_AGENT, userAgent);
headers.put(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON.toString());
headers.put(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
ZenodoRecords zenodoRecords = orgDataClient.get(rorZenodoRecordsUrl + "&sort=mostrecent&size=1", headers, ZenodoRecords.class);
ZenodoRecordsHit zenodoHit = zenodoRecords.getHits().getHits().get(0);

Expand All @@ -123,7 +123,7 @@ public boolean downloadOrgData() {
LOGGER.info("Retrieving ROR data from: " + zenodoUrl);
headers = new HashMap<String, String>();
headers.put(HttpHeaders.USER_AGENT, userAgent);
headers.put(HttpHeaders.ACCEPT, MediaType.APPLICATION_OCTET_STREAM);
headers.put(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
success = orgDataClient.downloadFile(zenodoUrl, zipFilePath, headers);

try {
Expand Down

0 comments on commit e21b955

Please sign in to comment.