This commit is contained in:
@@ -452,9 +452,13 @@ namespace AyaNova.Core
|
|||||||
var content = new StringContent(JsonConvert.SerializeObject(trialRequest), Encoding.UTF8, "application/json");
|
var content = new StringContent(JsonConvert.SerializeObject(trialRequest), Encoding.UTF8, "application/json");
|
||||||
var client = ServiceProviderProvider.HttpClientFactory.CreateClient();
|
var client = ServiceProviderProvider.HttpClientFactory.CreateClient();
|
||||||
var res = await client.PostAsync(sUrl, content);
|
var res = await client.PostAsync(sUrl, content);
|
||||||
|
var responseText = await res.Content.ReadAsStringAsync();
|
||||||
if (res.IsSuccessStatusCode)
|
if (res.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
return "Accepted";
|
if (string.IsNullOrWhiteSpace(responseText))
|
||||||
|
return "Accepted";
|
||||||
|
else
|
||||||
|
return responseText;
|
||||||
}
|
}
|
||||||
else return $"E1020 - Error requesting trial license key: {res.ReasonPhrase}";
|
else return $"E1020 - Error requesting trial license key: {res.ReasonPhrase}";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user