Skip to content

Commit

Permalink
πŸ› Bug(owner): fix dpe api endpoint (MTES-MCT#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattboll authored Jul 9, 2024
1 parent 347f03f commit 4ec23e7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ private void setAdemeResult(PropertyForm propertyForm, Property property) throws
URI uri;
HttpResponse<String> 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();
Expand Down

0 comments on commit 4ec23e7

Please sign in to comment.