-
Notifications
You must be signed in to change notification settings - Fork 3.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
return no content status (204) for succesful write #2298
Conversation
i got caught... for some reason i can't get the tests running locally 😄 (looking at it now) |
I suspect we'll end up soon outputting some data in response to a write, so this might be premature. |
no problem. if determining what to provide in the response is something you think you will get around to doing later but don't have time for now, then maybe having an open issue will help make sure it doesn't get overlooked. i had opened #2266 to try and determine what you might like to respond with because if you can give some direction, i might be able to implement it. however, when #2266 was closed, i was left the impression that an empty response is what it will be for now so i made this PR to do the right thing for an empty response. maybe this PR could be merged in case you don't get around to deciding what to respond with before you release 0.9.0? maybe you don't agree with these changes for an empty response? i don't mind closing this PR but i'd like to help on providing some kind of better response than what is currently provided. |
@neonstalwart would you mind rebasing this? |
since write returns nothing in the body of the response, return 204
5d2b738
to
ef7473a
Compare
@toddboom rebased. |
return no content status (204) for succesful write
@neonstalwart awesome - thanks! |
The write endpoint is returning StatusNoContent instead of StatusOK when the write is successful.
Fix client response check after PR #2298
This seems to now to be broken according to RFC7320
The server still seems to be sending back the header |
Could someone update docs here? |
@romikk Thanks for the note, I opened an issue on the website repo: https://github.com/influxdb/influxdb.com/issues/62 |
No longer sending a
|
since write returns nothing in the body of the response, return 204
related to #2266