mirror of
https://github.com/bitwarden/mobile
synced 2026-01-04 09:33:16 +00:00
HttpService abstraction with CustomAndroidClientHandler to handle xamarin android bug with error response body
This commit is contained in:
@@ -7,6 +7,17 @@ namespace Bit.App
|
||||
public class ApiHttpClient : HttpClient
|
||||
{
|
||||
public ApiHttpClient()
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
public ApiHttpClient(HttpMessageHandler handler)
|
||||
: base(handler)
|
||||
{
|
||||
Init();
|
||||
}
|
||||
|
||||
private void Init()
|
||||
{
|
||||
BaseAddress = new Uri("https://api.bitwarden.com");
|
||||
DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
||||
|
||||
Reference in New Issue
Block a user