mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Test fix for ongoing CI issues
This commit is contained in:
parent
00be092a77
commit
3bf5492cb6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user