fixes http_parser_validate

Wed, 30 Aug 2017 22:05:56 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 30 Aug 2017 22:05:56 +0200
changeset 182
b982cc285c40
parent 181
12828065f120
child 183
f33974f0dce0

fixes http_parser_validate

src/server/daemon/httpparser.c file | annotate | diff | comparison | revisions
--- 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;

mercurial