From 25aace1fb7bf949e2ac18a3ab0e84e84e1d91596 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Fri, 14 Nov 2014 00:14:37 +0100 Subject: refs #6661 initial work on triggering a 400 bad request instead of 500 in case Idsite is wrong --- misc/others/geoipUpdateRows.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/others') diff --git a/misc/others/geoipUpdateRows.php b/misc/others/geoipUpdateRows.php index 5f36ed5e7d..76f31115cb 100755 --- a/misc/others/geoipUpdateRows.php +++ b/misc/others/geoipUpdateRows.php @@ -87,7 +87,7 @@ if (!Common::isPhpCliMode()) { function geoipUpdateError($message) { Log::error($message); - Common::sendHeader('HTTP/1.1 500 Internal Server Error', $replace = true, $responseCode = 500); + Common::sendResponseCode(500); exit; } -- cgit v1.2.3