mirror of
https://github.com/bitwarden/server
synced 2025-12-19 17:53:44 +00:00
use parsedUri.Host
This commit is contained in:
@@ -60,12 +60,12 @@ namespace Bit.Icons.Services
|
|||||||
if(response == null || !response.IsSuccessStatusCode)
|
if(response == null || !response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
Cleanup(response);
|
Cleanup(response);
|
||||||
uri = new Uri($"http://{domain}");
|
uri = new Uri($"http://{parsedUri.Host}");
|
||||||
response = await GetAndFollowAsync(uri, 2);
|
response = await GetAndFollowAsync(uri, 2);
|
||||||
if(response == null || !response.IsSuccessStatusCode)
|
if(response == null || !response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
Cleanup(response);
|
Cleanup(response);
|
||||||
uri = new Uri($"https://www.{domain}");
|
uri = new Uri($"https://www.{parsedUri.Host}");
|
||||||
response = await GetAndFollowAsync(uri, 2);
|
response = await GetAndFollowAsync(uri, 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user