diff --git a/cgi-bin/pgstatus.pl b/cgi-bin/pgstatus.pl index 08f3477..6adde66 100755 --- a/cgi-bin/pgstatus.pl +++ b/cgi-bin/pgstatus.pl @@ -60,12 +60,12 @@ my $query = CGI->new; -# don't let people play games with GET requests - this should be called via POST +# don't let people play games with GET (or other) requests - this should be called via POST # the URL should only contain the signature -if ($query->request_method eq 'GET') +if ($query->request_method ne 'POST') { print - "Status: 496 wrong request method\nContent-Type: text/plain\n\n", + "Status: 405 Method Not Allowed\nContent-Type: text/plain\n\n", "wrong request method\n"; exit; }