# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1485597018 -3600
# Node ID 3589ed579127a83d2cd840e083b1eff68ff9a17c
# Parent  b169992137a859c9b1f429f754563b2f927a7a65
fixes empty headers

diff -r b169992137a8 -r 3589ed579127 src/server/daemon/httpparser.c
--- 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(