Process string, when is not base64
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
bf4967d30c
commit
49f4d5ec23
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue