Skip to content

Commit

Permalink
Fix api url missing scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
matusfaro committed Jan 6, 2025
1 parent fcaa331 commit c8124e4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ private IngestApi getIngestApi() {
}

// Fetch endpoint
Optional<String> endpointOpt = Optional.ofNullable(Strings.emptyToNull(System.getenv(DATASPRAY_ENDPOINT_ENV)));
Optional<String> endpointOpt = Optional.ofNullable(Strings.emptyToNull(System.getenv(DATASPRAY_ENDPOINT_ENV)))
.map(endpoint -> endpoint.matches("^https?://")
? endpoint : "https://" + endpoint);

ingestApiOpt = Optional.of(DataSprayClient.get(new Access(
apiKey,
Expand Down

0 comments on commit c8124e4

Please sign in to comment.