From 4ec23e7f065f211d30359f521b923dfe2504c0d0 Mon Sep 17 00:00:00 2001 From: Matthieu Bollot Date: Tue, 9 Jul 2024 09:20:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Bug(owner):=20fix=20dpe=20api=20?= =?UTF-8?q?endpoint=20(#797)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dossierfacileapiowner/property/PropertyServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();