diff --git a/dossierfacile-api-owner/src/main/java/fr/dossierfacile/api/dossierfacileapiowner/property/PropertyServiceImpl.java b/dossierfacile-api-owner/src/main/java/fr/dossierfacile/api/dossierfacileapiowner/property/PropertyServiceImpl.java index a20c8c958..f9def5ab7 100644 --- a/dossierfacile-api-owner/src/main/java/fr/dossierfacile/api/dossierfacileapiowner/property/PropertyServiceImpl.java +++ b/dossierfacile-api-owner/src/main/java/fr/dossierfacile/api/dossierfacileapiowner/property/PropertyServiceImpl.java @@ -120,9 +120,8 @@ private void setAdemeResult(PropertyForm propertyForm, Property property) throws URI uri; HttpResponse response; try { - uri = new URI("https://observatoire-dpe-audit.ademe.fr/pub/dpe/find/" + propertyForm.getAdemeNumber()); + uri = new URI("https://observatoire-dpe-audit.ademe.fr/pub/dpe/" + propertyForm.getAdemeNumber()); HttpRequest request = HttpRequest.newBuilder() - .headers("Referer", "https://observatoire-dpe-audit.ademe.fr") .uri(uri) .GET() .build();