Compare commits

...

2 commits

Author SHA1 Message Date
34550c8ab4 Set 401 uptime cas as OK. 2022-11-10 22:58:53 +01:00
d309c4156a Fixed year header. 2022-11-10 21:44:52 +01:00
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-022 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2022 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *

View file

@ -102,7 +102,7 @@ public class Uptime
{ {
this.datetime = LocalDateTime.now(); this.datetime = LocalDateTime.now();
this.code = code; this.code = code;
if (HttpStatusCategory.isSuccess(code)) if ((HttpStatusCategory.isSuccess(code)) || (HttpStatusCategory.isUnauthorized(code)))
{ {
this.status = UptimeStatus.OK; this.status = UptimeStatus.OK;
} }