File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
templates/base/http-clients
axiosSingleHttpClient/__snapshots__ Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ export class HttpClient<SecurityDataType = unknown> {
127127 ...requestParams,
128128 headers: {
129129 ...(requestParams.headers || {}),
130- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
130+ ...(type ? { "Content-Type": type } : {}),
131131 },
132132 params: query,
133133 responseType: responseFormat,
Original file line number Diff line number Diff line change @@ -2034,7 +2034,7 @@ export class HttpClient<SecurityDataType = unknown> {
20342034 ...requestParams,
20352035 headers: {
20362036 ...(requestParams.headers || {}),
2037- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
2037+ ...(type ? { "Content-Type": type } : {}),
20382038 },
20392039 params: query,
20402040 responseType: responseFormat,
Original file line number Diff line number Diff line change @@ -2034,7 +2034,7 @@ export class HttpClient<SecurityDataType = unknown> {
20342034 ...requestParams,
20352035 headers: {
20362036 ...(requestParams.headers || {}),
2037- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
2037+ ...(type ? { "Content-Type": type } : {}),
20382038 },
20392039 params: query,
20402040 responseType: responseFormat,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export class HttpClient {
8787 ...requestParams,
8888 headers: {
8989 ...(requestParams.headers || {}),
90- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
90+ ...(type ? { "Content-Type": type } : {}),
9191 },
9292 params: query,
9393 responseType: responseFormat,
You can’t perform that action at this time.
0 commit comments