From 3bf5492cb645ff967ad943e2f02f5f8a3f043f67 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 22 Dec 2022 13:51:07 +1100 Subject: [PATCH] Test fix for ongoing CI issues --- InvenTree/plugin/base/integration/mixins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/plugin/base/integration/mixins.py b/InvenTree/plugin/base/integration/mixins.py index c5f6b68933..313f7cc56c 100644 --- a/InvenTree/plugin/base/integration/mixins.py +++ b/InvenTree/plugin/base/integration/mixins.py @@ -536,7 +536,9 @@ class APICallMixin: """ headers = {'Content-Type': 'application/json'} if getattr(self, 'API_TOKEN_SETTING'): - headers[self.API_TOKEN] = self.get_setting(self.API_TOKEN_SETTING) + token = self.get_setting(self.API_TOKEN_SETTING) + headers[self.API_TOKEN] = token + headers['Authorization'] = f"{self.API_TOKEN} {token}" return headers def api_build_url_args(self, arguments: dict) -> str: