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
2626headers['Authorization'] = `Basic ${credentials}`;
2727}
2828
29- if (options.body) {
29+ if (options.body !== undefined ) {
3030if (options.mediaType) {
3131headers['Content-Type'] = options.mediaType;
3232} 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
2929headers['Authorization'] = `Basic ${credentials}`;
3030}
3131
32- if (options.body) {
32+ if (options.body !== undefined ) {
3333if (options.mediaType) {
3434headers['Content-Type'] = options.mediaType;
3535} 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
2626headers['Authorization'] = `Basic ${credentials}`;
2727}
2828
29- if (options.body) {
29+ if (options.body !== undefined ) {
3030if (options.mediaType) {
3131headers['Content-Type'] = options.mediaType;
3232} 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
2626headers['Authorization'] = `Basic ${credentials}`;
2727}
2828
29- if (options.body) {
29+ if (options.body !== undefined ) {
3030if (options.mediaType) {
3131headers['Content-Type'] = options.mediaType;
3232} 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
2626headers['Authorization'] = `Basic ${credentials}`;
2727}
2828
29- if (options.body) {
29+ if (options.body !== undefined ) {
3030if (options.mediaType) {
3131headers['Content-Type'] = options.mediaType;
3232} else if (isBlob(options.body)) {
You can’t perform that action at this time.
0 commit comments