Skip to content

Commit

Permalink
fix: discovery by .well-known not working
Browse files Browse the repository at this point in the history
  • Loading branch information
kozabrada123 committed Jan 6, 2025
1 parent bb0d327 commit ba42169
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ impl UrlBundle {
.build()?;
let response_wellknown = client.execute(request_wellknown).await?;
if response_wellknown.status().is_success() {
let body = response_wellknown.json::<WellKnownResponse>().await?.api;
UrlBundle::from_api_url(&body).await
let api_url = response_wellknown.json::<WellKnownResponse>().await?.api;

UrlBundle::from_api_url(&format!("{}/policies/instance/domains", api_url)).await
} else {
if let Ok(response_slash_api) =
UrlBundle::from_api_url(&format!("{}/api/policies/instance/domains", parsed)).await
Expand Down

0 comments on commit ba42169

Please sign in to comment.