Skip to content

Commit

Permalink
CA-381212 : The protocol is not always HTTP/1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Chremmou <[email protected]>
  • Loading branch information
kc284 committed Aug 21, 2023
1 parent de1120f commit 8644ed3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions XenModel/Actions/Updates/CheckForCdnUpdatesAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ protected override void Run()
}
catch (HTTP.BadServerResponseException ex)
{
if (ex.Message.Contains("Received error code HTTP/1.1 404 Not Found\r\n from the server") ||
ex.Message.Contains("Received error code HTTP/1.1 500 Internal Server Error\r\n from the server"))
if (ex.Message.Contains("404 Not Found") || ex.Message.Contains("500 Internal Server Error"))
{
log.Warn(ex.Message);
log.Warn("Failed to retrieve available updates. See the server side logs for details.");
Expand Down

0 comments on commit 8644ed3

Please sign in to comment.