Skip to content
Snippets Groups Projects
Commit f10be070 authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

refactor(AbstractRestClientTool): use existing method

parent 4cbfa3dc
No related branches found
No related tags found
1 merge request!328Mvo refacto user service
......@@ -73,7 +73,7 @@ public abstract class AbstractRestClientTool {
.setAccept(Arrays.asList(MediaType.APPLICATION_OCTET_STREAM, MediaType.ALL));
final RestTemplate restTemplate;
if (tokenUsage == TokenUsage.WITH_TOKEN) {
restTemplate = this.getRestTemplateBuilder().build();
restTemplate = this.getClient();
} else if (tokenUsage == TokenUsage.WITHOUT_TOKEN) {
restTemplate = new RestTemplateBuilder().build();
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment