-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bug: Management endpoints require Content-Type header even if no request body needed #1040
Comments
…est body needed - Removes Content-Type header requirement from GET and DELETE endpoints - Updates tests Updates #1040 {patch} Signed-off-by: Esta Nagy <[email protected]>
…est body needed - Removes Content-Type header requirement from GET and DELETE endpoints - Updates tests Updates #1040 {patch} Signed-off-by: Esta Nagy <[email protected]>
…est body needed (#1042) - Removes Content-Type header requirement from GET and DELETE endpoints - Updates tests Updates #1040 {patch} Signed-off-by: Esta Nagy <[email protected]>
Hi @JoeS-Bosch, |
Hi, |
Hi, |
Hi, |
Describe the bug
All your endpoint require Content-Type to be set to 'application/json'. While swagger does this implicitely, you have to create a workaround for programmatic HttpClients (e.g. in C#, I have to add an empty StringContent to the body).
Normally, get and delete requests, don't need a body or this type of header.
To reproduce
Steps to reproduce the behavior:
Expected behavior
Content-Type headers are not necessary when there is no required request body
Actual behavior
Content-Type headers are enforced to be set
The command you used
N/A
A minimal project that can be used to reproduce the issue
N/A
Environment
Additional context
Reported by @JoeS-Bosch
The text was updated successfully, but these errors were encountered: