From: Costa Tsaousis Date: Thu, 8 Dec 2016 20:06:44 +0000 (+0200) Subject: Merge pull request #1335 from ktsaou/master X-Git-Tag: v1.5.0~153 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=6937ae31f04bae40fb88c2eebfd01b0268d6a8e2;hp=8c791fc602fdf49838a346b5f2dcacccca7c2aad;p=netdata.git Merge pull request #1335 from ktsaou/master removed error log that is triggered under normal conditions when the request is too big --- diff --git a/src/web_client.c b/src/web_client.c index dca75eaf..0280e142 100644 --- a/src/web_client.c +++ b/src/web_client.c @@ -416,7 +416,7 @@ int mysendfile(struct web_client *w, char *filename) #ifdef NETDATA_WITH_ZLIB void web_client_enable_deflate(struct web_client *w, int gzip) { if(unlikely(w->response.zinitialized)) { - error("%llu: Compression has already be initialized for this client.", w->id); + debug(D_DEFLATE, "%llu: Compression has already be initialized for this client.", w->id); return; } diff --git a/src/web_client.h b/src/web_client.h index 8db1bae5..2555a0c2 100644 --- a/src/web_client.h +++ b/src/web_client.h @@ -34,7 +34,7 @@ struct response { Bytef zbuffer[ZLIB_CHUNK]; // temporary buffer for storing compressed output size_t zsent; // the compressed bytes we have sent to the client size_t zhave; // the compressed bytes that we have received from zlib - int zinitialized; + int zinitialized:1; #endif /* NETDATA_WITH_ZLIB */ };