File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
crates/rmcp/src/transport Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -204,12 +204,10 @@ impl AuthorizationManager {
204204 // according to the specification, the metadata should be located at "/.well-known/oauth-authorization-server"
205205 let mut discovery_url = self . base_url . clone ( ) ;
206206 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}" ) ) ;
207+ let path_suffix = if path == "/" { "" } else { path } ;
208+ discovery_url. set_path ( & format ! (
209+ "/.well-known/oauth-authorization-server{path_suffix}"
210+ ) ) ;
213211 debug ! ( "discovery url: {:?}" , discovery_url) ;
214212 let response = self
215213 . http_client
You can’t perform that action at this time.
0 commit comments