refac
This commit is contained in:
@@ -53,9 +53,12 @@ class WellKnownCacheControlMiddleware:
|
|||||||
return
|
return
|
||||||
|
|
||||||
path = scope.get("path", "")
|
path = scope.get("path", "")
|
||||||
is_oauth_well_known = path.startswith(
|
is_oauth_well_known = (
|
||||||
"/.well-known/oauth-authorization-server"
|
path == "/.well-known/oauth-authorization-server"
|
||||||
) or path.startswith("/.well-known/oauth-protected-resource")
|
or path.startswith("/.well-known/oauth-authorization-server/")
|
||||||
|
or path == "/.well-known/oauth-protected-resource"
|
||||||
|
or path.startswith("/.well-known/oauth-protected-resource/")
|
||||||
|
)
|
||||||
if not is_oauth_well_known:
|
if not is_oauth_well_known:
|
||||||
await self.app(scope, receive, send)
|
await self.app(scope, receive, send)
|
||||||
return
|
return
|
||||||
|
|||||||
2
uv.lock
generated
2
uv.lock
generated
@@ -2044,7 +2044,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "workspace-mcp"
|
name = "workspace-mcp"
|
||||||
version = "1.13.1"
|
version = "1.14.0"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "cryptography" },
|
{ name = "cryptography" },
|
||||||
|
|||||||
Reference in New Issue
Block a user