Skip to content

Commit

Permalink
Merge pull request #48 from github/muan-patch-1
Browse files Browse the repository at this point in the history
Consider all 2xx responsed successful
  • Loading branch information
muan authored Apr 3, 2020
2 parents 1dea6c1 + 23389cd commit e966c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async function check(autoCheckElement: AutoCheckElement) {
method: 'POST',
body
})
if (response.status === 200) {
if (response.ok) {
processSuccess(response, input, autoCheckElement.required)
} else {
processFailure(response, input, autoCheckElement.required)
Expand Down

0 comments on commit e966c5c

Please sign in to comment.