From 34550c8ab4b3a2c6616d9791f2c92650f95b9a55 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 10 Nov 2022 22:58:53 +0100 Subject: [PATCH] Set 401 uptime cas as OK. --- src/fr/devinsy/statoolinfos/uptime/Uptime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/uptime/Uptime.java b/src/fr/devinsy/statoolinfos/uptime/Uptime.java index f86bd73..817892a 100644 --- a/src/fr/devinsy/statoolinfos/uptime/Uptime.java +++ b/src/fr/devinsy/statoolinfos/uptime/Uptime.java @@ -102,7 +102,7 @@ public class Uptime { this.datetime = LocalDateTime.now(); this.code = code; - if (HttpStatusCategory.isSuccess(code)) + if ((HttpStatusCategory.isSuccess(code)) || (HttpStatusCategory.isUnauthorized(code))) { this.status = UptimeStatus.OK; }