-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
charset=utf-8 for application/x-www-form-urlencoded causes HTTP response 415 #395
Comments
I haven't figured out a solution to this problem, so it can only be |
I'm getting this error too, even without the
|
Okay I updated Poem and the error randomly disappeared 🤔. I can't see a change that would fix this but I'll accept it lol. |
@sunli829 Do you think it's appropriate to update poem's code to use |
I've fixed this, please help me test it. 🙂 |
update: the following error occurs because in my Cargo.toml poem = { version = "1.3.40", features = ["test"] }
poem-openapi = { git = "https://github.com/poem-web/poem", rev="a43e94f2cfbefdbb484e3bdb51fafdb05201dbbb", features = ["swagger-ui"] } after changing it to poem = { git = "https://github.com/poem-web/poem", branch="master", features = ["testi"] }
poem-openapi = { git = "https://github.com/poem-web/poem", branch="master", features = ["swagger-ui"] } the error disappears; and the fix works! no more 415. Thank you! But after setting poem-openapi = { git = "https://github.com/poem-web/poem", rev="a43e94f2cfbefdbb484e3bdb51fafdb05201dbbb", features = ["swagger-ui"] } my project doesn't compile, saying that
I would fix that and try again soon. |
Released in |
question
when I am using HTTPie to test an endpoint with
http -f POST http://localhost:8081/subscription name=foo
, the following error is reported(httpie will automatically add
charset=utf-8
in a form POST request)Is this an expected behavior?
version
my test code
my source code is here: https://github.com/dreamerlzl/zero2prod/blob/main/src/routes/subscribe.rs
The text was updated successfully, but these errors were encountered: