mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Test fix for ongoing CI issues (#4107)
(cherry picked from commit 3bf5492cb645ff967ad943e2f02f5f8a3f043f67)
This commit is contained in:
parent
e1d1b51936
commit
07e4f39dc7
@ -536,7 +536,9 @@ class APICallMixin:
|
|||||||
"""
|
"""
|
||||||
headers = {'Content-Type': 'application/json'}
|
headers = {'Content-Type': 'application/json'}
|
||||||
if getattr(self, 'API_TOKEN_SETTING'):
|
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
|
return headers
|
||||||
|
|
||||||
def api_build_url_args(self, arguments: dict) -> str:
|
def api_build_url_args(self, arguments: dict) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user