[httpd] Allow caller of httpd_send_reply to avoid gzipping

This commit is contained in:
ejurgensen
2016-10-17 14:18:13 +02:00
parent d8696e72ea
commit 249d923af2
5 changed files with 32 additions and 26 deletions

View File

@@ -283,7 +283,7 @@ rsp_send_reply(struct evhttp_request *req, mxml_node_t *reply)
headers = evhttp_request_get_output_headers(req);
evhttp_add_header(headers, "Content-Type", "text/xml; charset=utf-8");
evhttp_add_header(headers, "Connection", "close");
httpd_send_reply(req, HTTP_OK, "OK", evbuf);
httpd_send_reply(req, HTTP_OK, "OK", evbuf, 0);
evbuffer_free(evbuf);
}