fixes broken error response

Tue, 27 Dec 2016 14:02:28 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 27 Dec 2016 14:02:28 +0100
changeset 132
e9afb5387007
parent 131
70010b94bda5
child 133
87b405d61f64

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);
     

mercurial