File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
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)) {
You can’t perform that action at this time.
0 commit comments