Merge pull request #808 from dvschuyl/bug/parse-srcset-fix-float-width

🐛 Truncate width to integer string in srcset
This commit is contained in:
Aravind
2025-03-31 18:21:09 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ def parse_srcset(s: str) -> List[Dict]:
if len(parts) >= 1:
url = parts[0]
width = (
parts[1].rstrip("w")
parts[1].rstrip("w").split('.')[0]
if len(parts) > 1 and parts[1].endswith("w")
else None
)

View File

@@ -68,4 +68,4 @@ observability:
enabled: True
endpoint: "/metrics"
health_check:
endpoint: "/health"
endpoint: "/health"