mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
add support for Device-Type header
This commit is contained in:
parent
8571755daa
commit
d395115cc9
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using Bit.App.Abstractions;
|
||||
using Bit.App.Enums;
|
||||
using Bit.App.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using XLabs.Ioc;
|
||||
|
||||
|
@ -21,6 +23,9 @@ namespace Bit.App
|
|||
{
|
||||
Headers.Add("Device-Identifier", appIdService.AppId);
|
||||
}
|
||||
|
||||
Headers.Add("Device-Type", ((int)Helpers.OnPlatform(iOS: DeviceType.iOS,
|
||||
Android: DeviceType.Android, Windows: DeviceType.UWP)).ToString());
|
||||
}
|
||||
|
||||
public TokenHttpRequestMessage(object requestObject)
|
||||
|
|
Loading…
Reference in a new issue