mirror of
https://github.com/bitwarden/mobile
synced 2025-02-01 11:07:16 +01:00
add support for Device-Type header
This commit is contained in:
parent
8571755daa
commit
d395115cc9
@ -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…
x
Reference in New Issue
Block a user