Skip to content

Commit 2ea34b8

Browse files
committed
check response for ok instead of 200 status code
1 parent 1071dec commit 2ea34b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ActionBar/SourceVerificationIcon/SourceVerificationIcon.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function SourceVerificationIcon({context, source, proxyUrl}) {
2727
const verifyFunction = async (source, fetchFunction) => {
2828
try {
2929
const response = await fetchFunction(source);
30-
return response.status === 200;
30+
return response.ok;
3131
} catch (error) {
3232
return false;
3333
}

0 commit comments

Comments
 (0)