From f641296da3a3b100910c08542bbc6b0c659451ac Mon Sep 17 00:00:00 2001
From: Steve Reis <stevereis93@gmail.com>
Date: Wed, 9 Mar 2022 14:56:59 +0100
Subject: [PATCH] fix: Axios and node mismatch type on headers

---
 .../engine/connectors/exareme/main.connector.ts    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/api/src/engine/connectors/exareme/main.connector.ts b/api/src/engine/connectors/exareme/main.connector.ts
index 22a5d85..8dde760 100644
--- a/api/src/engine/connectors/exareme/main.connector.ts
+++ b/api/src/engine/connectors/exareme/main.connector.ts
@@ -199,7 +199,7 @@ export default class ExaremeService implements IEngineService {
 
     return this.httpService
       .get<string>(path, {
-        headers: this.req.headers,
+        headers: this.headers,
       })
       .pipe(map((response) => response.data));
   }
@@ -209,7 +209,7 @@ export default class ExaremeService implements IEngineService {
 
     return this.httpService
       .post<string>(path, this.req.body, {
-        headers: this.req.headers,
+        headers: this.headers,
       })
       .pipe(map((response) => response.data));
   }
@@ -219,7 +219,7 @@ export default class ExaremeService implements IEngineService {
 
     return this.httpService
       .get<string>(path, {
-        headers: this.req.headers,
+        headers: this.headers,
       })
       .pipe(map((response) => response.data));
   }
@@ -229,7 +229,7 @@ export default class ExaremeService implements IEngineService {
 
     return this.httpService
       .delete(path, {
-        headers: this.req.headers,
+        headers: this.headers,
       })
       .pipe(map((response) => response.data));
   }
@@ -239,7 +239,7 @@ export default class ExaremeService implements IEngineService {
 
     return this.httpService
       .patch(path, this.req.body, {
-        headers: this.req.headers,
+        headers: this.headers,
       })
       .pipe(map((response) => response.data));
   }
@@ -249,7 +249,7 @@ export default class ExaremeService implements IEngineService {
 
     return this.httpService
       .post(path, this.req.body, {
-        headers: this.req.headers,
+        headers: this.headers,
       })
       .pipe(map((response) => response.data));
   }
@@ -259,7 +259,7 @@ export default class ExaremeService implements IEngineService {
 
     return this.httpService
       .post(path, this.req.body, {
-        headers: this.req.headers,
+        headers: this.headers,
       })
       .pipe(map((response) => response.data));
   }
-- 
GitLab