fix this incredibly buggy JSON response ...

This commit is contained in:
2014-03-14 12:06:04 +01:00
parent 1aa88d558d
commit 5923e8ceaa
+3 -1
View File
@@ -176,7 +176,9 @@ namespace UptimeSharp
// fix buggy response by uptimerobot óÒ
if (!String.IsNullOrEmpty(responseString))
{
responseString = responseString.Replace("}{", "},{");
responseString = responseString
.Replace("}{", "},{") // nice one
.Replace(",]", ""); // ok, this is a bummer!
}
// cache response