diff --git a/lib/httpd.c b/lib/httpd.c index df939d9..bcf4674 100644 --- a/lib/httpd.c +++ b/lib/httpd.c @@ -533,8 +533,12 @@ httpd_thread(void *arg) /* Parse HTTP request from data read from connection */ http_request_add_data(connection->request, buffer, ret); if (http_request_has_error(connection->request)) { - logger_log(httpd->logger, LOGGER_ERR, "httpd error in parsing: %s", - http_request_get_error_name(connection->request)); + char *data = utils_data_to_string((const unsigned char *) buffer, ret, 16); + logger_log(httpd->logger, LOGGER_ERR, "httpd error in parsing: %s\n%s\n%s", + http_request_get_error_name(connection->request), + http_request_get_error_description(connection->request), + data); + free (data); httpd_remove_connection(httpd, connection); continue; }