summaryrefslogtreecommitdiffstats
path: root/heartbeat.cgi
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-07-08 07:04:18 +0200
committerDylan William Hardison <dylan@hardison.net>2018-07-08 07:04:18 +0200
commit597ac85a2a4219cb8cb6d916414e47a3abfa8c72 (patch)
tree1d01a86c4a32981a20016fa2204561588c96ea32 /heartbeat.cgi
parentbe1f92450788dc89280c9e04a4bf983b5d7fac54 (diff)
parentfbdbbe2d0dc333fdd6fb547254d2cab57ed3bc98 (diff)
downloadbugzilla-597ac85a2a4219cb8cb6d916414e47a3abfa8c72.tar.gz
bugzilla-597ac85a2a4219cb8cb6d916414e47a3abfa8c72.tar.xz
Merge remote-tracking branch 'dylanwh/mojo-poc'
Diffstat (limited to 'heartbeat.cgi')
-rwxr-xr-xheartbeat.cgi8
1 files changed, 0 insertions, 8 deletions
diff --git a/heartbeat.cgi b/heartbeat.cgi
index 08cf13fa7..773673697 100755
--- a/heartbeat.cgi
+++ b/heartbeat.cgi
@@ -29,7 +29,6 @@ my $ok = eval {
die "database not available" unless $database_ok;
die "memcached server(s) not available" unless $memcached_ok;
- die "mod_perl/psgi not configured?" unless BZ_PERSISTENT;
1;
};
FATAL("heartbeat error: $@") if !$ok && $@;
@@ -37,10 +36,3 @@ FATAL("heartbeat error: $@") if !$ok && $@;
my $cgi = Bugzilla->cgi;
print $cgi->header(-type => 'text/plain', -status => $ok ? '200 OK' : '500 Internal Server Error');
print $ok ? "Bugzilla OK\n" : "Bugzilla NOT OK\n";
-
-if ($ENV{MOD_PERL}) {
- my $r = $cgi->r;
- # doing this supresses the error document, but does not change the http response code.
- $r->rflush;
- $r->status(200);
-}