Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-WorkGH committed Jun 19, 2024
1 parent d36509d commit de1cee5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit de1cee5

Please sign in to comment.