Skip to content

Commit

Permalink
More open access checks
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPeck authored Sep 20, 2024
1 parent c9352f8 commit 29f9ed9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ public Map<String, Map<String, String>> getOpenCrossCountsMap(QueryRequest query
*/
private HttpHeaders prepareQueryRequest(QueryRequest queryRequest, ResultType resultType, String accessType) {
HttpHeaders headers = new HttpHeaders();
headers.add(AUTH_HEADER_NAME,
if (AUTHORIZED_ACCESS.getValue().equals(accessType)) {
headers.add(AUTH_HEADER_NAME,
queryRequest.getResourceCredentials().get(AUTH_HEADER_NAME)
);
);
}

headers.add("request-source", accessType);

Expand Down

0 comments on commit 29f9ed9

Please sign in to comment.