Skip to content

Issue warning when current server name does not match configured server name#1577

Merged
davidism merged 1 commit intopallets:masterfrom
markroth8:mroth/fix/760
Jun 2, 2019
Merged

Issue warning when current server name does not match configured server name#1577
davidism merged 1 commit intopallets:masterfrom
markroth8:mroth/fix/760

Conversation

@markroth8
Copy link
Copy Markdown
Contributor

@markroth8 markroth8 commented May 31, 2019

Similar to #793 but issues a warning which only appears once. Fixes #760

@markroth8
Copy link
Copy Markdown
Contributor Author

Fixes #760

@davidism davidism added this to the 1.0.0 milestone Jun 2, 2019
@davidism davidism merged commit c338ae9 into pallets:master Jun 2, 2019
davidism added a commit to pallets/flask that referenced this pull request Jun 10, 2019
After pallets/werkzeug#1577, mismatched configured and real server
names will show a warning in addition to raising 404. This caused
tests that did this deliberately to fail.

This patch removes the pytest fixture we were using to fail on
warnings, instead using the standard `-Werror` option. This speeds
up the tests by ~3x.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

print warning when server_name and cur_server_name don't match

2 participants