1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-30 04:17:55 +02:00

add support for Device-Type header

This commit is contained in:
Kyle Spearrin 2017-12-15 09:48:25 -05:00
parent 8571755daa
commit d395115cc9

View File

@ -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)