Replies: 2 comments 1 reply
-
Yes. It would be way too restrictive otherwise. I can already see all the issues coming if we enforced something like that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I certainly don’t want to create a support issue! :-) Isn’t it wrong to return a resource with a content type that the request or is unwilling to accept? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I just noticed that I can have Axum returning any content that it wants to without the
Accept
header having been checked. Should it be possible, say, for an application to returnapplication/json
where noAccept
header allows it?Otherwise, there's a bit of boilerplate I now need for each request:
axum version
0.7.4
Beta Was this translation helpful? Give feedback.
All reactions