1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-13 17:18:14 -05:00

use parsedUri.Host

This commit is contained in:
Kyle Spearrin 2018-06-28 10:18:35 -04:00
parent 1b59e70991
commit 37375d8653

View File

@ -60,12 +60,12 @@ namespace Bit.Icons.Services
if(response == null || !response.IsSuccessStatusCode)
{
Cleanup(response);
uri = new Uri($"http://{domain}");
uri = new Uri($"http://{parsedUri.Host}");
response = await GetAndFollowAsync(uri, 2);
if(response == null || !response.IsSuccessStatusCode)
{
Cleanup(response);
uri = new Uri($"https://www.{domain}");
uri = new Uri($"https://www.{parsedUri.Host}");
response = await GetAndFollowAsync(uri, 2);
}
}