Tue, 27 Dec 2016 14:02:28 +0100
fixes broken error response
src/server/daemon/error.c | file | annotate | diff | comparison | revisions |
--- a/src/server/daemon/error.c Tue Dec 27 13:12:32 2016 +0100 +++ b/src/server/daemon/error.c Tue Dec 27 14:02:28 2016 +0100 @@ -61,8 +61,10 @@ } } + pblock_removekey(pb_key_content_type, rq->srvhdrs); + pblock_removekey(pb_key_content_length, rq->srvhdrs); + pblock_kninsert(pb_key_content_length, msg.length, rq->srvhdrs); - pblock_removekey(pb_key_content_type, rq->srvhdrs); pblock_nvinsert("content-type", "text/html", rq->srvhdrs); http_start_response(sn, rq);