Skip to content

Commit

Permalink
feat: adds more online status protection
Browse files Browse the repository at this point in the history
  • Loading branch information
aknous committed Nov 7, 2024
1 parent f7d2302 commit 8121156
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Pdu-Wattbox-Lib/WattboxHttp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,13 @@ public void SubmitRequest(string url, string dir, RequestType requestType)

if(string.IsNullOrEmpty(response.ContentString))
{
IsOnlineWattbox = false;
Debug.Console(1, this, "Response ContentString is null or empty");
return;
}

if (response.Header.ContentType.Contains("text/xml"))
{
//Debug.Console(2, this, "Parsing");
IsOnlineWattbox = true;
ParseResponse(response.ContentString);
return;
}
Expand Down

0 comments on commit 8121156

Please sign in to comment.