This commit is contained in:
2021-08-11 18:15:54 +00:00
parent 168eaf8e37
commit 073a44db31
2 changed files with 3 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ namespace AyaNova.PlugIn.V8
client.Dispose();
client = null;
client = new HttpClient();
client.Timeout = new TimeSpan(0, 0, 30);
client.BaseAddress = new Uri(ApiBaseUrl);
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));