We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
HTTPie Desktop sets Content-Type header application/json on operations.
Content-Type
application/json
Some systems receiving the request will not allow an empty body on Content-Type set to application/json
For example Fastify will give an error: Body cannot be empty when content-type is set to 'application/json'
Body cannot be empty when content-type is set to 'application/json'
The workaround is to force a Content-Type header with text/plain as a value, but this should not be necessary.
text/plain
1. Create a simple DELETE requests with no headers 2. Notice that the Desktop App set a header for `Content-Type`
Similar behaviour for a POST operation.
No header should automatically be set for any requests.
Windows
2024.1.2
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
HTTPie Desktop sets
Content-Type
headerapplication/json
on operations.Some systems receiving the request will not allow an empty body on
Content-Type
set toapplication/json
For example Fastify will give an error:
Body cannot be empty when content-type is set to 'application/json'
The workaround is to force a
Content-Type
header withtext/plain
as a value, but this should not be necessary.Steps to reproduce?
Similar behaviour for a POST operation.
What did you expect to happen?
No header should automatically be set for any requests.
Platform
Windows
HTTPie Desktop version
2024.1.2
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: