mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
adjust logging spam on gzipped output
This commit is contained in:
parent
7c3b08cd53
commit
d000f503e9
@ -205,7 +205,7 @@ XMLSTRUCT *xml_init(WS_CONNINFO *pwsc, int emit_header) {
|
|||||||
accept = infn->ws_getrequestheader(pwsc,"accept-encoding");
|
accept = infn->ws_getrequestheader(pwsc,"accept-encoding");
|
||||||
|
|
||||||
if((!nogzip) && (accept) && (strcasestr(accept,"gzip"))) {
|
if((!nogzip) && (accept) && (strcasestr(accept,"gzip"))) {
|
||||||
infn->log(E_LOG,"Gzipping output\n");
|
infn->log(E_DBG,"Gzipping output\n");
|
||||||
pxml->psb = xml_stream_open();
|
pxml->psb = xml_stream_open();
|
||||||
if(pxml->psb) {
|
if(pxml->psb) {
|
||||||
infn->ws_addresponseheader(pwsc,"Content-Encoding","gzip");
|
infn->ws_addresponseheader(pwsc,"Content-Encoding","gzip");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user