fixes empty headers

Sat, 28 Jan 2017 10:50:18 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 28 Jan 2017 10:50:18 +0100
changeset 163
3589ed579127
parent 162
b169992137a8
child 164
6f47eb624665

fixes empty headers

src/server/daemon/httpparser.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/httpparser.c	Sat Jan 28 10:38:34 2017 +0100
+++ b/src/server/daemon/httpparser.c	Sat Jan 28 10:50:18 2017 +0100
@@ -138,6 +138,8 @@
                         if(buf->inbuf[buf->pos-2] == '\r') {
                             parser->value.length--;
                         }
+                    } else {
+                        parser->value.ptr = "";
                     }
                     // add header
                     header_add(

mercurial