Testing search query
This commit is contained in:
@@ -18,11 +18,25 @@ public static partial class HttpClientHelper
|
||||
|
||||
if (port == 80)
|
||||
{
|
||||
client.BaseAddress = new($"http://{url}");
|
||||
try
|
||||
{
|
||||
client.BaseAddress = new($"http://{url}");
|
||||
}
|
||||
catch
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
client.BaseAddress = new($"https://{url}");
|
||||
try
|
||||
{
|
||||
client.BaseAddress = new($"https://{url}");
|
||||
}
|
||||
catch
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
client.DefaultRequestHeaders.Accept.Clear();
|
||||
@@ -87,11 +101,25 @@ public static partial class HttpClientHelper
|
||||
|
||||
if (port == 80)
|
||||
{
|
||||
client.BaseAddress = new($"http://{url}");
|
||||
try
|
||||
{
|
||||
client.BaseAddress = new($"http://{url}");
|
||||
}
|
||||
catch
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
client.BaseAddress = new($"https://{url}");
|
||||
try
|
||||
{
|
||||
client.BaseAddress = new($"https://{url}");
|
||||
}
|
||||
catch
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
client.DefaultRequestHeaders.Accept.Clear();
|
||||
|
||||
Reference in New Issue
Block a user