janhommes / o.js

o.js - client side oData lib.
https://janhommes.github.io/o.js/example/
MIT License
238 stars 57 forks source link

fix: use response.ok to assert a successful response #161

Closed jcmonteiro closed 1 month ago

jcmonteiro commented 1 month ago

Why?

Successful batch requests were throwing on my end since the server I connect to responds with 202.

What?

Asserts successful responses with Response.ok instead of checking the status code.

jcmonteiro commented 1 month ago

Closes #162