We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32a79a commit 37f394aCopy full SHA for 37f394a
1 file changed
crates/rmcp/src/transport/auth.rs
@@ -204,12 +204,10 @@ impl AuthorizationManager {
204
// according to the specification, the metadata should be located at "/.well-known/oauth-authorization-server"
205
let mut discovery_url = self.base_url.clone();
206
let path = discovery_url.path();
207
- let path_suffix = if path == "/" {
208
- ""
209
- } else {
210
- path
211
- };
212
- discovery_url.set_path(&format!("/.well-known/oauth-authorization-server{path_suffix}"));
+ let path_suffix = if path == "/" { "" } else { path };
+ discovery_url.set_path(&format!(
+ "/.well-known/oauth-authorization-server{path_suffix}"
+ ));
213
debug!("discovery url: {:?}", discovery_url);
214
let response = self
215
.http_client
0 commit comments