Skip to content

Commit 49f4d5e

Browse files
committed
Process string, when is not base64
Signed-off-by: Fabio José <[email protected]>
1 parent bf4967d commit 49f4d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/fun.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const asData = (data, contentType) => {
5656
let result = data;
5757

5858
// pattern matching alike
59-
result = isString(result) && isJsonContentType(contentType)
59+
result = isString(result) && !isBase64(result) && isJsonContentType(contentType)
6060
? JSON.parse(result)
6161
: result;
6262

0 commit comments

Comments
 (0)