reset "chunked" flag when sending non-chunked reply

This commit is contained in:
Joachim Bauch 2010-11-02 13:50:57 -04:00 committed by Nick Mathewson
parent f8064762ae
commit aa5f55face

2
http.c
View File

@ -2179,6 +2179,8 @@ evhttp_send_reply_start(struct evhttp_request *req, int code,
evhttp_add_header(req->output_headers, "Transfer-Encoding",
"chunked");
req->chunked = 1;
} else {
req->chunked = 0;
}
evhttp_make_header(req->evcon, req);
evhttp_write_buffer(req->evcon, NULL, NULL);