File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const getHeaders = (config: OpenAPIConfig, options: ApiRequestOptions): O
26
26
headers['Authorization'] = `Basic ${credentials}`;
27
27
}
28
28
29
- if (options.body) {
29
+ if (options.body !== undefined ) {
30
30
if (options.mediaType) {
31
31
headers['Content-Type'] = options.mediaType;
32
32
} else if (isBlob(options.body)) {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
29
29
headers['Authorization'] = `Basic ${credentials}`;
30
30
}
31
31
32
- if (options.body) {
32
+ if (options.body !== undefined ) {
33
33
if (options.mediaType) {
34
34
headers['Content-Type'] = options.mediaType;
35
35
} else if (isBlob(options.body)) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
26
26
headers['Authorization'] = `Basic ${credentials}`;
27
27
}
28
28
29
- if (options.body) {
29
+ if (options.body !== undefined ) {
30
30
if (options.mediaType) {
31
31
headers['Content-Type'] = options.mediaType;
32
32
} else if (isBlob(options.body)) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
26
26
headers['Authorization'] = `Basic ${credentials}`;
27
27
}
28
28
29
- if (options.body) {
29
+ if (options.body !== undefined ) {
30
30
if (options.mediaType) {
31
31
headers['Content-Type'] = options.mediaType;
32
32
} else if (isBlob(options.body)) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
26
26
headers['Authorization'] = `Basic ${credentials}`;
27
27
}
28
28
29
- if (options.body) {
29
+ if (options.body !== undefined ) {
30
30
if (options.mediaType) {
31
31
headers['Content-Type'] = options.mediaType;
32
32
} else if (isBlob(options.body)) {
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
416
416
headers['Authorization'] = \`Basic \${credentials}\`;
417
417
}
418
418
419
- if (options.body) {
419
+ if (options.body !== undefined ) {
420
420
if (options.mediaType) {
421
421
headers['Content-Type'] = options.mediaType;
422
422
} else if (isBlob(options.body)) {
@@ -3738,7 +3738,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
3738
3738
headers['Authorization'] = \`Basic \${credentials}\`;
3739
3739
}
3740
3740
3741
- if (options.body) {
3741
+ if (options.body !== undefined ) {
3742
3742
if (options.mediaType) {
3743
3743
headers['Content-Type'] = options.mediaType;
3744
3744
} else if (isBlob(options.body)) {
@@ -4484,7 +4484,7 @@ export const getHeaders = async (config: OpenAPIConfig, options: ApiRequestOptio
4484
4484
headers['Authorization'] = \`Basic \${credentials}\`;
4485
4485
}
4486
4486
4487
- if (options.body) {
4487
+ if (options.body !== undefined ) {
4488
4488
if (options.mediaType) {
4489
4489
headers['Content-Type'] = options.mediaType;
4490
4490
} else if (isBlob(options.body)) {
You can’t perform that action at this time.
0 commit comments