]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use .zst as possible compressed extension
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 31 Oct 2016 11:42:56 +0000 (11:42 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 31 Oct 2016 11:42:56 +0000 (11:42 +0000)
src/libutil/map.c

index 52fc6a0115a5aac59532345955bd98cc70853df8..1986bf961b55ecb4b3a28add5dee3f59563d33df 100644 (file)
@@ -1377,6 +1377,10 @@ rspamd_map_parse_backend (struct rspamd_config *cfg, const gchar *map_line)
                if (g_ascii_strcasecmp (p, ".zstd") == 0) {
                        bk->is_compressed = TRUE;
                }
+               p = end - 4;
+               if (g_ascii_strcasecmp (p, ".zst") == 0) {
+                       bk->is_compressed = TRUE;
+               }
        }
 
        /* Now check for each proto separately */