AAE-30878 - fixed lint issue on js-api

This commit is contained in:
VitoAlbano
2025-08-15 12:15:13 +01:00
committed by Vito Albano
parent 6fe1cf5ccc
commit 508bb9a35f

View File

@@ -176,12 +176,12 @@ export class SuperagentHttpClient implements HttpClient {
if (contentType && contentType !== 'multipart/form-data') {
request.type(contentType);
} else if (!(request as any).header['Content-Type'] && contentType !== 'multipart/form-data') {
} else if (!request.header['Content-Type'] && contentType !== 'multipart/form-data') {
request.type('application/json');
}
if (contentType === 'application/x-www-form-urlencoded') {
request.send(SuperagentHttpClient.normalizeParams(formParams)).on('progress', (event: any) => {
request.send(SuperagentHttpClient.normalizeParams(formParams)).on('progress', (event) => {
this.progress(event, eventEmitter);
});
} else if (contentType === 'multipart/form-data') {