59 msg = error_500; |
59 msg = error_500; |
60 break; |
60 break; |
61 } |
61 } |
62 } |
62 } |
63 |
63 |
|
64 pblock_removekey(pb_key_content_type, rq->srvhdrs); |
|
65 pblock_removekey(pb_key_content_length, rq->srvhdrs); |
|
66 |
64 pblock_kninsert(pb_key_content_length, msg.length, rq->srvhdrs); |
67 pblock_kninsert(pb_key_content_length, msg.length, rq->srvhdrs); |
65 pblock_removekey(pb_key_content_type, rq->srvhdrs); |
|
66 pblock_nvinsert("content-type", "text/html", rq->srvhdrs); |
68 pblock_nvinsert("content-type", "text/html", rq->srvhdrs); |
67 http_start_response(sn, rq); |
69 http_start_response(sn, rq); |
68 |
70 |
69 net_write(sn->csd, msg.ptr, msg.length); |
71 net_write(sn->csd, msg.ptr, msg.length); |
70 |
72 |