fix bad JSON from uptimerobot (oh gosh)
This commit is contained in:
@@ -173,6 +173,12 @@ namespace UptimeSharp
|
||||
string responseString = await response.Content.ReadAsStringAsync();
|
||||
T parsedResponse;
|
||||
|
||||
// fix buggy response by uptimerobot óÒ
|
||||
if (!String.IsNullOrEmpty(responseString))
|
||||
{
|
||||
responseString = responseString.Replace("}{", "},{");
|
||||
}
|
||||
|
||||
// cache response
|
||||
lastResponseData = responseString;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user