Process string, when is not base64

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-11-04 14:08:16 -03:00
parent bf4967d30c
commit 49f4d5ec23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ const asData = (data, contentType) => {
let result = data;
// pattern matching alike
result = isString(result) && isJsonContentType(contentType)
result = isString(result) && !isBase64(result) && isJsonContentType(contentType)
? JSON.parse(result)
: result;