Skip to content

Commit

Permalink
Set Client Medyatype as JSON and UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
euskalhenriko committed Feb 5, 2024
1 parent b986ffc commit a158613
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.io.IOException;
import java.lang.reflect.Array;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
Expand Down Expand Up @@ -107,7 +108,7 @@ public class Client extends RestTemplate implements IClient {

ObjectMapper objectMapper;
String authToken;
MediaType contentType = MediaType.APPLICATION_JSON;
MediaType contentType = new MediaType(MediaType.APPLICATION_JSON, StandardCharsets.UTF_8);
RestTemplate basicTemplate;
private Set<String> endpoints = new HashSet<>();

Expand Down

0 comments on commit a158613

Please sign in to comment.