Description
When custom error responses are enabled and HTTP post request is sent with no "Content-Length" header Traffic server sends back the default response instead of "request#no_content_length".
To reproduce the issue following records.config configuration variable should be set to 1.
proxy.config.body_factory.enable_customizations
In function "HttpTransact::is_request_valid" the following function call is not correct.
build_error_response(s, HTTP_STATUS_BAD_REQUEST, "request#no_content_length", "Content Length Required", const_cast < char *>(URL_MSG));
The third and fourth parameters should be swapped.
build_error_response(s, HTTP_STATUS_BAD_REQUEST, "Content Length Required", "request#no_content_length", const_cast < char *>(URL_MSG));