Skip to content

Conversation

@davidism
Copy link
Member

Map takes subdomain_matching, moving the behavior out of Flask pallets/flask#5634. It's enabled by default to match current behavior. If it and host_matching are disabled, the request's Host doesn't factor into routing at all.

bind_to_environ server_name is not used if host_matching is enabled, otherwise it would restrict routing to only that host. If subdomain_matching is enabled and a subdomain couldn't be detected, default_subdomain is used if set, rather than always "<invalid>".

This did not affect any existing tests. Leaving as draft until I have a chance to write tests and docs for all this. I also want to consider the use of `"" more, whether it should always be used (current behavior) or never be used (further than this PR).

fixes #3005

@davidism davidism added this to the 3.2.0 milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add subdomain_matching param to Map

2 participants