|
@@ -1996,7 +1996,7 @@ int CHttpRequest::processHeaders(IMultiException *me)
|
|
|
if(m_content_length > 0 && m_MaxRequestEntityLength > 0 && m_content_length > m_MaxRequestEntityLength && (!isUpload(false)))
|
|
|
{
|
|
|
UERRLOG("Bad request: Content-Length exceeded maxRequestEntityLength");
|
|
|
- throw createEspHttpException(HTTP_STATUS_BAD_REQUEST_CODE, "The request length was too long.", HTTP_STATUS_BAD_REQUEST);
|
|
|
+ throw createEspHttpException(HTTP_STATUS_REQUEST_ENTITY_TOO_LARGE_CODE, "The request length was too long.", HTTP_STATUS_REQUEST_ENTITY_TOO_LARGE);
|
|
|
}
|
|
|
setPersistentEligible(checkPersistentEligible());
|
|
|
|