From de1cee5ed1888740e66ca0d8d47615bd1b2322fa Mon Sep 17 00:00:00 2001 From: Tristan Chuine Date: Wed, 19 Jun 2024 16:48:09 +0200 Subject: [PATCH] review --- .../server/service/shortcircuit/ShortCircuitService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gridsuite/study/server/service/shortcircuit/ShortCircuitService.java b/src/main/java/org/gridsuite/study/server/service/shortcircuit/ShortCircuitService.java index 16bb24d81..5c5245b0c 100644 --- a/src/main/java/org/gridsuite/study/server/service/shortcircuit/ShortCircuitService.java +++ b/src/main/java/org/gridsuite/study/server/service/shortcircuit/ShortCircuitService.java @@ -307,7 +307,7 @@ public UUID createParameters(@Nullable final String parametersInfos) { .pathSegment(SHORT_CIRCUIT_API_VERSION, "parameters"); try { HttpHeaders headers = new HttpHeaders(); - headers.setAccept(List.of(MediaType.TEXT_PLAIN)); + headers.setAccept(List.of(MediaType.APPLICATION_JSON)); if (StringUtils.isBlank(parametersInfos)) { return restTemplate.postForObject(uri.pathSegment("default").build().toUri(), new HttpEntity<>(headers), UUID.class); } else { @@ -348,7 +348,7 @@ public String getParameters(UUID parametersUuid) { public UUID duplicateParameters(UUID parametersUuid) { try { HttpHeaders headers = new HttpHeaders(); - headers.setAccept(List.of(MediaType.TEXT_PLAIN)); + headers.setAccept(List.of(MediaType.APPLICATION_JSON)); return restTemplate.postForObject(UriComponentsBuilder.fromUriString(shortCircuitServerBaseUri) .pathSegment(SHORT_CIRCUIT_API_VERSION, "parameters") .queryParam("duplicateFrom", parametersUuid)