Skip to content

Commit

Permalink
send client version to api
Browse files Browse the repository at this point in the history
  • Loading branch information
flustix committed Jul 18, 2024
1 parent e23c2ad commit 1dbcdb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fluXis.Game/Online/API/APIRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ public void Perform(IAPIClient client)

if (!string.IsNullOrEmpty(APIClient.AccessToken))
Request.AddHeader("Authorization", APIClient.AccessToken);

if (!string.IsNullOrEmpty(APIClient.MultifactorToken))
Request.AddHeader("X-Multifactor-Token", APIClient.MultifactorToken);

Request.AddHeader("X-Version", FluXisGameBase.VersionString);

try
{
Logger.Log($"Performing API request {GetType().Name.Split('.').Last()}...", LoggingTarget.Network);
Expand Down

0 comments on commit 1dbcdb5

Please sign in to comment.