diff options
author | Mark Felder <feld@FreeBSD.org> | 2015-11-24 16:07:28 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2015-11-24 16:07:28 +0000 |
commit | 0bd8c2520fa64da88e5190be55f6cfee2cfefb24 (patch) | |
tree | 15115cb1eed21c24a8fe5ed5a52e70b01c2c516a /net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c | |
parent | - Add openssh-portable dependency explicit when /usr/bin/sftp is not present (diff) |
net-mgmt/xymon-server: Update to 4.3.24
Also ensure 301 redirects are conisidered "GREEN". This has been
reported upstream.
Notes
Notes:
svn path=/head/; revision=402367
Diffstat (limited to 'net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c')
-rw-r--r-- | net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c b/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c index c8cadee2606d..d9c81afa9c89 100644 --- a/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c +++ b/net-mgmt/xymon-server/files/patch-xymonnet_httpresult.c @@ -1,17 +1,10 @@ ---- xymonnet/httpresult.c.orig 2015-11-23 19:40:49 UTC +--- xymonnet/httpresult.c.orig 2015-11-24 15:59:24 UTC +++ xymonnet/httpresult.c -@@ -64,10 +64,10 @@ static int statuscolor(testedhost_t *h, - break; - default: - /* Unknown or custom status */ -- result = (result < 100) ? (h->dialup ? COL_CLEAR : COL_RED) : -- (result < 200) ? COL_YELLOW : -- (result < 300) ? COL_GREEN : -- (result < 400) ? COL_YELLOW : -+ result = (status < 100) ? (h->dialup ? COL_CLEAR : COL_RED) : -+ (status < 200) ? COL_YELLOW : -+ (status < 300) ? COL_GREEN : -+ (status < 400) ? COL_YELLOW : - COL_RED; - break; - } +@@ -44,6 +44,7 @@ static int statuscolor(testedhost_t *h, + + switch(status) { + case 200: /* OK - most common case */ ++ case 301: /* Permanent Redirect */ + case 302: /* Temp Redirect */ + case 303: /* See Other */ + case 307: /* Temp Redirect (HTTP 1.1) */ |