File tree 4 files changed +4
-4
lines changed
templates/base/http-clients
axiosSingleHttpClient/__snapshots__
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> {
127
127
...requestParams,
128
128
headers: {
129
129
...(requestParams.headers || {}),
130
- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
130
+ ...(type ? { "Content-Type": type } : {}),
131
131
},
132
132
params: query,
133
133
responseType: responseFormat,
Original file line number Diff line number Diff line change @@ -2034,7 +2034,7 @@ export class HttpClient<SecurityDataType = unknown> {
2034
2034
...requestParams,
2035
2035
headers: {
2036
2036
...(requestParams.headers || {}),
2037
- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
2037
+ ...(type ? { "Content-Type": type } : {}),
2038
2038
},
2039
2039
params: query,
2040
2040
responseType: responseFormat,
Original file line number Diff line number Diff line change @@ -2034,7 +2034,7 @@ export class HttpClient<SecurityDataType = unknown> {
2034
2034
...requestParams,
2035
2035
headers: {
2036
2036
...(requestParams.headers || {}),
2037
- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
2037
+ ...(type ? { "Content-Type": type } : {}),
2038
2038
},
2039
2039
params: query,
2040
2040
responseType: responseFormat,
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export class HttpClient {
87
87
...requestParams,
88
88
headers: {
89
89
...(requestParams.headers || {}),
90
- ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
90
+ ...(type ? { "Content-Type": type } : {}),
91
91
},
92
92
params: query,
93
93
responseType: responseFormat,
You can’t perform that action at this time.
0 commit comments