Skip to content

Commit

Permalink
WoTinspector: FIX authentication token header
Browse files Browse the repository at this point in the history
  • Loading branch information
Jylpah committed Nov 27, 2024
1 parent ff2a1d8 commit 6fb660f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/blitzmodels/wotinspector/wi_apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,8 @@ def __init__(
headers: Optional[dict[str, str]] = None
if auth_token is not None:
headers = dict()
headers["Api-Key"] = f"Token {auth_token}"
headers["Authorization"] = f"{auth_token}"
headers["accept"] = "application/json"

self.session = ThrottledClientSession(
rate_limit=rate_limit,
Expand Down

0 comments on commit 6fb660f

Please sign in to comment.