Skip to content

Commit 91eea99

Browse files
committed
add auto reset of isBase64 on error
1 parent 928c7e3 commit 91eea99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ class API {
152152

153153
}).catch((e) => {
154154

155+
// Error messages are never base64 encoded
156+
response._isBase64 = false
157+
155158
let message;
156159

157160
if (e instanceof Error) {

0 commit comments

Comments
 (0)