Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Maybe fixed VR device in user agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
RequiDev committed Sep 26, 2021
1 parent f37620f commit 54423e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ReModCE/Components/AvatarFavoritesComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ private void InitializeNetworkClient()
CookieContainer = new CookieContainer()
};
_httpClient = new HttpClient(_httpClientHandler);
_httpClient.DefaultRequestHeaders.UserAgent.ParseAdd($"ReModCE/{((XRDevice.isPresent ? XRDevice.model : "Desktop").Replace(' ', '_'))}.{Application.version} (Windows NT 10.0; Win64; x64)");

var vrHeadset = XRDevice.isPresent ? XRDevice.model : "Desktop";
vrHeadset = vrHeadset.Replace(' ', '_');

_httpClient.DefaultRequestHeaders.UserAgent.ParseAdd($"ReModCE/{vrHeadset}.{Application.version} (Windows NT 10.0; Win64; x64)");
}

public override void OnUiManagerInit(UiManager uiManager)
Expand Down

0 comments on commit 54423e6

Please sign in to comment.