From 269190cc67e50861f2230acaf6f5e5178ddcda0c Mon Sep 17 00:00:00 2001 From: Alexander Stefanov Date: Mon, 29 Nov 2021 15:01:13 +0300 Subject: [PATCH] do not upoload json to fstore --- abf/console/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abf/console/misc.py b/abf/console/misc.py index 3bc3f7b..99fd979 100644 --- a/abf/console/misc.py +++ b/abf/console/misc.py @@ -460,7 +460,7 @@ def is_text_file(path): m.load() r = m.file(path) log.debug(_("Magic type of file %(path)s is %(type)s") % {'path': path, 'type': r}) - if r.startswith('text'): + if r.startswith('text') or r.startswith('application/json'): return True return False