From 324e475c8a94d5caabeeec21cd7dec4474670819 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 18 Aug 2017 13:18:36 +0200 Subject: [PATCH] Return `400 Bad Request` instead of 431 Closes #2378 --- .../files/lib/system/exception/AJAXException.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php index 332bac446e..dc94aa7302 100644 --- a/wcfsetup/install/files/lib/system/exception/AJAXException.class.php +++ b/wcfsetup/install/files/lib/system/exception/AJAXException.class.php @@ -105,7 +105,9 @@ class AJAXException extends LoggedException { break; case self::BAD_PARAMETERS: - $statusHeader = 'HTTP/1.1 431 Bad Parameters'; + // see https://github.com/WoltLab/WCF/issues/2378 + //$statusHeader = 'HTTP/1.1 431 Bad Parameters'; + $statusHeader = 'HTTP/1.1 400 Bad Request'; $responseData['exceptionID'] = $exceptionID; break; -- 2.20.1