]> arthur.barton.de Git - netdata.git/commitdiff
Merge pull request #1335 from ktsaou/master
authorCosta Tsaousis <costa@tsaousis.gr>
Thu, 8 Dec 2016 20:06:44 +0000 (22:06 +0200)
committerGitHub <noreply@github.com>
Thu, 8 Dec 2016 20:06:44 +0000 (22:06 +0200)
removed error log that is triggered under normal conditions when the request is too big

src/web_client.c
src/web_client.h

index dca75eaf8bcf0d68db8d639f8de485df26641d87..0280e142caccfd2dc64d75cf076bbd1ec17c1882 100644 (file)
@@ -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;
     }
 
index 8db1bae5237ebb1e43005646df34a2ef6cc66494..2555a0c2410ea295d5a297b9e0476b029013ea56 100644 (file)
@@ -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 */
 
 };