From d1b47465a81d2b3b4272cdb674fa8e6a81878073 Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 24 Feb 2018 07:15:12 +0100 Subject: [PATCH] [jsonapi] Disable gzipping response An attempt to improve the performance of the artists and albums endpoints. --- src/httpd_jsonapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/httpd_jsonapi.c b/src/httpd_jsonapi.c index 67ceb2e5..8be6366c 100644 --- a/src/httpd_jsonapi.c +++ b/src/httpd_jsonapi.c @@ -1146,10 +1146,10 @@ jsonapi_request(struct evhttp_request *req, struct httpd_uri_parsed *uri_parsed) case HTTP_OK: /* 200 OK */ headers = evhttp_request_get_output_headers(req); evhttp_add_header(headers, "Content-Type", "application/json"); - httpd_send_reply(req, status_code, "OK", hreq->reply, 0); + httpd_send_reply(req, status_code, "OK", hreq->reply, HTTPD_SEND_NO_GZIP); break; case HTTP_NOCONTENT: /* 204 No Content */ - httpd_send_reply(req, status_code, "No Content", hreq->reply, 0); + httpd_send_reply(req, status_code, "No Content", hreq->reply, HTTPD_SEND_NO_GZIP); break; case HTTP_BADREQUEST: /* 400 Bad Request */