mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-26 22:23:17 -05:00
[jsonapi] Disable gzipping response
An attempt to improve the performance of the artists and albums endpoints.
This commit is contained in:
parent
66bdb7c0a9
commit
d1b47465a8
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user