Skip to content

Commit

Permalink
[docker build] Add content type header
Browse files Browse the repository at this point in the history
  • Loading branch information
euskalhenriko committed Feb 10, 2025
1 parent 35aced7 commit 8a958ea
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ protected boolean downloadChunk(int chunk, String variable, File destinationDire
String endpoint = getEndpointUrl("/processes/" + this.dataset + "/execute");
Logging.INSTANCE.info("Ask for job id: " + endpoint + " with key " + apiKey + "\n" + jsonBody);
HttpResponse<JsonNode> response = Unirest.post(endpoint)
.header(CDS_API_KEY_HEADER, apiKey).header("Accept", "application/json").body(jsonBody).asJson();
.header(CDS_API_KEY_HEADER, apiKey)
.header("Content-Type", "application/json")
.header("Accept", "application/json")
.body(jsonBody).asJson();

if (response.isSuccess()) {

Expand Down

0 comments on commit 8a958ea

Please sign in to comment.