diff --git a/src/stac_auth_proxy/middleware/AuthenticationExtensionMiddleware.py b/src/stac_auth_proxy/middleware/AuthenticationExtensionMiddleware.py index 28d5a22..708a8d4 100644 --- a/src/stac_auth_proxy/middleware/AuthenticationExtensionMiddleware.py +++ b/src/stac_auth_proxy/middleware/AuthenticationExtensionMiddleware.py @@ -57,7 +57,7 @@ def should_transform_response(self, request: Request, scope: Scope) -> bool: ] ), ) - and 200 >= scope["status"] < 300 + and 200 <= scope["status"] < 300 ) def transform_json(self, data: dict[str, Any], request: Request) -> dict[str, Any]: diff --git a/src/stac_auth_proxy/middleware/UpdateOpenApiMiddleware.py b/src/stac_auth_proxy/middleware/UpdateOpenApiMiddleware.py index 3827ec7..b845d56 100644 --- a/src/stac_auth_proxy/middleware/UpdateOpenApiMiddleware.py +++ b/src/stac_auth_proxy/middleware/UpdateOpenApiMiddleware.py @@ -42,7 +42,7 @@ def should_transform_response(self, request: Request, scope: Scope) -> bool: ), ] ) - and 200 >= scope["status"] < 300 + and 200 <= scope["status"] < 300 ) def transform_json(self, data: dict[str, Any], request: Request) -> dict[str, Any]: