mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Fix typo in RFC 9728 impl (#5126)
This commit is contained in:
committed by
GitHub
parent
008051e42d
commit
327f915610
@@ -198,8 +198,8 @@ export class OAuthUtils {
|
||||
* @returns The resource metadata URI if found
|
||||
*/
|
||||
static parseWWWAuthenticateHeader(header: string): string | null {
|
||||
// Parse Bearer realm and resource_metadata_uri
|
||||
const match = header.match(/resource_metadata_uri="([^"]+)"/);
|
||||
// Parse Bearer realm and resource_metadata
|
||||
const match = header.match(/resource_metadata="([^"]+)"/);
|
||||
if (match) {
|
||||
return match[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user