mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +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.Net.Http;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Bit.App.Abstractions;
|
using Bit.App.Abstractions;
|
||||||
|
using Bit.App.Enums;
|
||||||
|
using Bit.App.Utilities;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using XLabs.Ioc;
|
using XLabs.Ioc;
|
||||||
|
|
||||||
|
@ -21,6 +23,9 @@ namespace Bit.App
|
||||||
{
|
{
|
||||||
Headers.Add("Device-Identifier", appIdService.AppId);
|
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)
|
public TokenHttpRequestMessage(object requestObject)
|
||||||
|
|
Loading…
Reference in a new issue