diff --git a/src/main/java/works/weave/socks/orders/services/AsyncGetService.java b/src/main/java/works/weave/socks/orders/services/AsyncGetService.java index dc49cc1..901c621 100644 --- a/src/main/java/works/weave/socks/orders/services/AsyncGetService.java +++ b/src/main/java/works/weave/socks/orders/services/AsyncGetService.java @@ -56,7 +56,7 @@ public Future> getResource(URI url, TypeReferences.ResourceType< InterruptedException, IOException { RequestEntity request = RequestEntity.get(url).accept(HAL_JSON).build(); LOG.debug("Requesting: " + request.toString()); - Resource body = halTemplate.exchange(request, type).getBody(); + Resource body = restProxyTemplate.getRestTemplate().exchange(request, type).getBody(); LOG.debug("Received: " + body.toString()); return new AsyncResult<>(body); }