Skip to content

Commit

Permalink
Exclude content-type for DELETE method too
Browse files Browse the repository at this point in the history
  • Loading branch information
bjulien committed Jan 23, 2024
1 parent 1a1b46e commit 821955f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/AbstractClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ class AbstractClient<D extends MetadataDefinition> {
let params = requestParams;
let baseHeaders: HeadersInit = {};

if (params.method !== 'GET') {
if (params.method !== 'GET' || (params.method !== 'GET' && params.method !== 'DELETE')) {
baseHeaders = {
'Content-Type': 'application/json',
};
Expand Down

0 comments on commit 821955f

Please sign in to comment.