# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1504123556 -7200
# Node ID b982cc285c404112451a0b5f41be17f68633c5ce
# Parent  12828065f120e0d5c193c9d7349d25ff03e05095
fixes http_parser_validate

diff -r 12828065f120 -r b982cc285c40 src/server/daemon/httpparser.c
--- a/src/server/daemon/httpparser.c	Wed Aug 30 21:57:37 2017 +0200
+++ b/src/server/daemon/httpparser.c	Wed Aug 30 22:05:56 2017 +0200
@@ -76,7 +76,7 @@
     HTTPRequest *req = parser->request;
     if(
             !req->method.ptr || req->method.length == 0
-            || req->uri.ptr || req->uri.length == 0
+            || !req->uri.ptr || req->uri.length == 0
             || !req->httpv.ptr || req->httpv.length == 0)
     {
         return 0;