From f83acd0016573a2397929137e3e256a6f346cf60 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Wed, 27 Jan 2021 08:58:46 +0800 Subject: [PATCH] update json parse --- lib/src/parser/dio_parser/dio_parser.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/parser/dio_parser/dio_parser.dart b/lib/src/parser/dio_parser/dio_parser.dart index cbda20b..a848600 100644 --- a/lib/src/parser/dio_parser/dio_parser.dart +++ b/lib/src/parser/dio_parser/dio_parser.dart @@ -35,8 +35,9 @@ class DioParser { } if (_ctype.contains('image/')) return ContentType.IMAGE; if (_ctype.contains('audio/')) return ContentType.AUDIO; - if (_ctype.contains('video/')) - return ContentType.VIDEO; + if (_ctype.contains('video/')) return ContentType.VIDEO; + if (_ctype.contains('application/json')) + return ContentType.JSON; else return ContentType.UNCATCH; }