]> arthur.barton.de Git - netdata.git/commitdiff
enable also deflate compression
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 21 May 2016 14:28:57 +0000 (17:28 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 21 May 2016 14:28:57 +0000 (17:28 +0300)
src/web_client.c

index d78624c9c37693513ba7fa459527a2eddeb7f475..8429f6957843475569646fb71e092ce1fc19d990 100644 (file)
@@ -1229,7 +1229,7 @@ static inline char *http_header_parse(struct web_client *w, char *s) {
        }
 #ifdef NETDATA_WITH_ZLIB
        else if(!strcasecmp(s, "Accept-Encoding")) {
-               if(web_enable_gzip && strcasestr(v, "gzip")) {
+               if(web_enable_gzip && (strcasestr(v, "gzip") || strcasestr(v, "deflate"))) {
                        w->enable_gzip = 1;
                }
        }