If the server name is misconfigured, the subdomain is '<invalid>' and no warning is printed.
|
if cur_server_name[offset:] != real_server_name: |
An improvement could be to print a warning if the names don't match, instead of just returning 404 errors for all pages.
If the server name is misconfigured, the
subdomainis'<invalid>'and no warning is printed.werkzeug/werkzeug/routing.py
Line 1302 in d637320
An improvement could be to print a warning if the names don't match, instead of just returning 404 errors for all pages.