--- a/src/server/daemon/protocol.c Sat Oct 17 23:05:23 2015 +0200 +++ b/src/server/daemon/protocol.c Fri Oct 23 17:28:09 2015 +0200 @@ -305,9 +305,6 @@ // add the http status line to the output buffer add_http_status_line(out, sn->pool, rq); - - // add server header - sbuf_write(out, "Server: webserver\r\n", 19); // add date header struct tm mtms; @@ -318,6 +315,9 @@ sbuf_write(out, date, strlen(date)); sbuf_write(out, "\r\n", 2); + // add server header + sbuf_write(out, "Server: webserver\r\n", 19); + // check content length ans transfer encoding char *ctlen = pblock_findkeyval(pb_key_content_length, rq->srvhdrs); char *enc = pblock_findkeyval(pb_key_transfer_encoding, rq->srvhdrs);