Compare commits
2 commits
a6ddce2ee1
...
34550c8ab4
Author | SHA1 | Date | |
---|---|---|---|
34550c8ab4 | |||
d309c4156a |
3 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue