Skip to content

Commit c57b49a

Browse files
authored
fix: axios validateStatus config (#108)
1 parent 5e240dd commit c57b49a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/actions/makeApiClientRequest.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ const makeApiClientRequest = async ({ apiRequest }) => {
4040
data: body,
4141
responseType: "arraybuffer",
4242
withCredentials: false,
43-
validateStatus: false,
43+
validateStatus: (status) => {
44+
return true;
45+
},
4446
});
4547
const responseTime = performance.now() - requestStartTime;
4648

0 commit comments

Comments
 (0)