8000 add `subdomain_matching` param to `Map` · Issue #3005 · pallets/werkzeug · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
add subdomain_matching param to Map #3005
@davidism

Description

@davidism

If server_name is passed to Map.bind_from_environ, and a subdomain is not passed in (as usually it's not possible to know it), it will try to detect the subdomain by removing server_name as a suffix from host. This restricts routing to only the configured server_name, even if we don't have any subdomain-based routing rules.

Move Flask's subdomain_matching param into Map (where host_matching is already). bind_to_environ should not extract a subdomain unless it's enabled.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0