[fix] settings cleanup (#3013)

This commit is contained in:
Vlad Stan
2025-03-04 16:30:54 +02:00
committed by GitHub
parent a4ca88b6a4
commit 9bd037b6e7
4 changed files with 54 additions and 83 deletions
-5
View File
@@ -10,7 +10,6 @@ from urllib.parse import urlparse
import jinja2
import jwt
import shortuuid
from fastapi import Request
from fastapi.routing import APIRoute
from packaging import version
from pydantic.schema import field_schema
@@ -344,7 +343,3 @@ def path_segments(path: str) -> list[str]:
def normalize_path(path: Optional[str]) -> str:
path = path or ""
return "/" + "/".join(path_segments(path))
def normalized_path(request: Request) -> str:
return "/" + "/".join(path_segments(request.url.path))