-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wraps websocket handler #1696
wraps websocket handler #1696
Conversation
Signed-off-by: Andrey Petukhov <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #1696 +/- ##
=======================================
Coverage 92.17% 92.17%
=======================================
Files 23 23
Lines 2312 2313 +1
Branches 424 424
=======================================
+ Hits 2131 2132 +1
Misses 141 141
Partials 40 40
Continue to review full report at Codecov.
|
Signed-off-by: Andrey Petukhov <[email protected]>
Greetings,
Thank you for Sanic project. |
I'd like to see a migration path for getting rid of the strict_slashes setting. The only sensible option in this regard is (1) if a route ends with slash, redirect GETs and 404 anything else trying to access without slash, (2) if a route does not end with slash, 404 anything with slash, or (3) if matching routes exist with and without slash, match strictly the one used in request. Those wishing for non-strict functionality are free to rely on option 3 and explicitly specify two routes. The question is how to get there without breaking existing apps too badly. |
@Tronic I am with you on that. But, I think it needs to be part of a larger discussion that resolves a long list of items that need to be resolved with the router. I know I have been saying this for a while and there has been a lot of tangential talk about it, but I think 2020 should finally be the time when we tackle this item. |
Signed-off-by: Andrey Petukhov <[email protected]>
Signed-off-by: Andrey Petukhov <[email protected]>
Signed-off-by: Andrey Petukhov <[email protected]>
Sorry for impatience, changed pull request according to Single Responsibility Principle. |
Tagging for 20.3. |
Conflicts with #1853. Need to move the |
Closing in favor of #1880 |
Add wraps to websocket_handler.
Without it, all routes_names for websockets are identical and do not keep blueprint name.
Signed-off-by: Andrey Petukhov [email protected]