|| (strcmp(csp->http->cmd, csp->https_headers->first->str) &&
(JB_ERR_OK != change_encrypted_request_destination(csp))))
{
- log_error(LOG_LEVEL_ERROR,
- "Failed to get the request destination in the rewritten headers");
ssl_send_data_delayed(&(csp->ssl_client_attr),
(const unsigned char *)MESSED_UP_REQUEST_RESPONSE,
strlen(MESSED_UP_REQUEST_RESPONSE), get_write_delay(csp));
+ log_error(LOG_LEVEL_ERROR,
+ "Invalid request line after applying header filters.");
+ /* XXX: Use correct size */
+ log_error(LOG_LEVEL_CLF,
+ "%s - - [%T] \"Invalid request generated\" 400 0", csp->ip_addr_str);
+
return JB_ERR_PARSE;
}