File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
packages/openapi-ts/src/plugins/@hey-api Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,7 @@ export const createClient = (config: Config = {}): Client => {
63
63
}
64
64
65
65
// remove Content-Type header if body is empty to avoid sending invalid requests
66
- if (
67
- opts . body === undefined ||
68
- ( opts . serializedBody !== undefined && opts . serializedBody === '' )
69
- ) {
66
+ if ( opts . body === undefined || opts . serializedBody === '' ) {
70
67
opts . headers . delete ( 'Content-Type' ) ;
71
68
}
72
69
Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ export const createClient = (config: Config = {}): Client => {
62
62
}
63
63
64
64
// remove Content-Type header if body is empty to avoid sending invalid requests
65
- if (
66
- opts . body === undefined ||
67
- ( opts . serializedBody !== undefined && opts . serializedBody === '' )
68
- ) {
65
+ if ( opts . body === undefined || opts . serializedBody === '' ) {
69
66
opts . headers . delete ( 'Content-Type' ) ;
70
67
}
71
68
You can’t perform that action at this time.
0 commit comments