]> arthur.barton.de Git - netdata.git/blobdiff - src/web_client.h
added configuration options for controlling web compression level and strategy and...
[netdata.git] / src / web_client.h
index c5a448e0b850b828c85f97e00a2bac18a0c5f565..31849fab42d656eb694ecef8da9447a12044aa9a 100644 (file)
 
 #define DEFAULT_DISCONNECT_IDLE_WEB_CLIENTS_AFTER_SECONDS 60
 extern int web_client_timeout;
-extern int web_enable_gzip;
+
+#ifdef NETDATA_WITH_ZLIB
+extern int web_enable_gzip, web_gzip_level, web_gzip_strategy;
+#endif /* NETDATA_WITH_ZLIB */
 
 #ifndef NETDATA_WEB_CLIENT_H
 #define NETDATA_WEB_CLIENT_H 1
@@ -48,7 +51,7 @@ struct response {
        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:1;
-#endif
+#endif /* NETDATA_WITH_ZLIB */
 
 };