# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1504123057 -7200
# Node ID 12828065f120e0d5c193c9d7349d25ff03e05095
# Parent  98462e878ca7fe1e4e0fcbd7d3a0b8316e631b7c
abort on http_parser_validate error

diff -r 98462e878ca7 -r 12828065f120 src/server/daemon/sessionhandler.c
--- a/src/server/daemon/sessionhandler.c	Wed Aug 30 21:53:08 2017 +0200
+++ b/src/server/daemon/sessionhandler.c	Wed Aug 30 21:57:37 2017 +0200
@@ -323,8 +323,8 @@
     if(!http_parser_validate(parser)) {
         log_ereport(LOG_FAILURE, "http_parser_validate failed");
         // TODO: send error 400 bad request
-        //event->finish = evt_request_error;
-        //return 0;
+        event->finish = evt_request_error;
+        return 0;
     }
     
     /*