Skip to content

Commit

Permalink
Merge pull request WebOfTrust#108 from psteniusubi/fix-check-http-res…
Browse files Browse the repository at this point in the history
…ponse-status

use Response.ok to check http response status
  • Loading branch information
rodolfomiranda authored Sep 23, 2023
2 parents e2b516b + 609ad18 commit bc70fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keri/app/clienting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class SignifyClient {
body: _body,
headers: final_headers
});
if (!(res.status == 200 || res.status == 202 || res.status == 206)) {
if (!res.ok) {
const error = await res.text()
throw new Error(error)
}
Expand Down

0 comments on commit bc70fbb

Please sign in to comment.