-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Bug] Sanic-ext breaks @app.route(unquote=True) #148
Comments
Thanks for the issue. I am going to investigate it. |
I found that when the app is extended, for some reason, |
Note: This issue is also reproducible on 21.12.3 which is LTS. |
I see what the issue is. I will get a patch out for 22.12 and 21.12. |
This was referenced Dec 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Sanic v21.3 adds the
unquote
arg in@app.route
to url-decode parameters in routes. But when sanic-ext is loaded, parameters will not be decoded evenunquote
is set.Screenshots
Not related to swagger.
To Reproduce
Then visit
http://127.0.0.1:8000/%E5%95%8A
and find that it returnsOK2 %E5%95%8A
.Expected behavior
The page should return
OK2 啊
.Environment (please complete the following information):
Additional context
After uncommenting
app.config.AUTO_EXTEND = False
in the script above, sanic works as expected. So this issue is caused by sanic-ext.The text was updated successfully, but these errors were encountered: