Skip to content

Conversation

@yoeunes
Copy link
Contributor

@yoeunes yoeunes commented Nov 21, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

CompiledUrlMatcher uses string comparison for static hosts, but checks lowercased request host against the original route host. This fails if the route host has uppercase letters (e.g., 'api.example.com' !== 'API.example.com'), throwing ResourceNotFoundException.

UrlMatcher avoids this via case-insensitive regex.

This PR lowercases static hosts in CompiledUrlMatcherDumper for consistency.

@nicolas-grekas nicolas-grekas force-pushed the routing-compiled-static-host-case branch from e1f1dd8 to 9c33b1f Compare November 21, 2025 13:02
@nicolas-grekas
Copy link
Member

Thank you @yoeunes.

@nicolas-grekas nicolas-grekas merged commit 525c2da into symfony:6.4 Nov 21, 2025
10 checks passed
This was referenced Nov 21, 2025
This was referenced Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants