From 6fa531e11f29235813b8d8e3b4b010916313be1c Mon Sep 17 00:00:00 2001 From: VitoAlbano Date: Tue, 19 Aug 2025 17:44:14 +0100 Subject: [PATCH] AAE-30878 - reverted misplaced changes --- lib/js-api/src/superagentHttpClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/js-api/src/superagentHttpClient.ts b/lib/js-api/src/superagentHttpClient.ts index a47130d2aa..e201067deb 100644 --- a/lib/js-api/src/superagentHttpClient.ts +++ b/lib/js-api/src/superagentHttpClient.ts @@ -176,12 +176,12 @@ export class SuperagentHttpClient implements HttpClient { if (contentType && contentType !== 'multipart/form-data') { request.type(contentType); - } else if (!request.header['Content-Type'] && contentType !== 'multipart/form-data') { + } else if (!(request as any).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) => { + request.send(SuperagentHttpClient.normalizeParams(formParams)).on('progress', (event: any) => { this.progress(event, eventEmitter); }); } else if (contentType === 'multipart/form-data') {