-
Notifications
You must be signed in to change notification settings - Fork 125
Delete Request not including request body #146
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
Comments
CC @artemredkin |
From RFC7231
That seems like we do actually comply to the spec because a payload on DELETE has no defined semantics. However, it might be better to pass the body on or to fail the request... CC @Lukasa |
"No defined semantics" doesn't mean "cannot have", just means that REST doesn't imply anything about what such a payload means. It's totally fine to have one, it's just up to the server and client to agree on what it means. The actual bug here is in NIOHTTP1. I captured the TCP stream of such a request in Wireshark, and here's what we sent (I just picked a random body I had lying around in a sample project):
This occurs because NIOHTTP1's |
@Lukasa my reading of “no defined semantics” was that server & client can do whatever they want. Therefore I was assuming that not sending it is spec compliant (and so is sending it). |
Not sending it is spec compliant but not useful, as there are definitely use-cases that require sending it. |
Agreed, hence suggesting to either sending it (more useful) or failing it (less useful). I’ll file a NIOHTTP1 bug. |
So it had to do purely with Assuming this will be fixed in next patch release of |
@prafsoni once nio is released a |
@weissi Thanks. My project already has NIO dependency so it’s good to know I can get fix sooner. But I think I can wait till nio is released. |
@prafsoni should be fixed with NIO 2.12.0. Mind confirming this works? |
@weissi it's working :) |
Thanks so much, closing |
I am seeing that even though I create delete
Request
with body but the request received by server doesn't have the body. Is this not supported ? if so what is the rationale behind it?The text was updated successfully, but these errors were encountered: