Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork16.7k
Comments
Handle errors during create_url_adapter#2994
Merged
davidism merged 3 commits intopallets:masterfromNov 13, 2018
jarek:werkzeug-640-exceptions-during-bind
Merged
Handle errors during create_url_adapter#2994davidism merged 3 commits intopallets:masterfromjarek:werkzeug-640-exceptions-during-bind
davidism merged 3 commits intopallets:masterfrom
jarek:werkzeug-640-exceptions-during-bind
Conversation
If create_url_adapter raises (which it can if werkzeug cannot bindenvironment, for example on non-ASCII Host header), we handle it asother routing exceptions rather than raising through.refpallets/werkzeug#640
ContributorAuthor
jarek commentedNov 12, 2018
Will take a look at the tests, It Worked On My Machine™ |
ContributorAuthor
jarek commentedNov 13, 2018
Failures are in the test doing On my local machine:
|
We've discovered that passing Unicode in Host actually works, except fortest client limitations on Python 2 - and the only things that don'twork are non-printable characters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading.Please reload this page.
If create_url_adapter raises (which it can if werkzeug cannot bind environment, for example on
non-ASCIInon-printable Host header), we should handle it as other routing exceptions rather than raising through. This allows us to return a HTTP 400, rather than a 500 from unhandled exception.This came up inpallets/werkzeug#640
Do we need to add it to any documentation or changelogs?