Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Accept HTTP status codes between 199 and 300 as successes (#78)
  • Loading branch information
zinaschroeder authored Apr 10, 2020
commit 5bd3e05955093e89572e3d01102869ef9f7fb41c
2 changes: 1 addition & 1 deletion src/response/AuthResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ AuthResponse.prototype.headers = function headers() {
* @returns {*|boolean}
*/
AuthResponse.prototype.valid = function valid() {
return (this.response && Number(this.response.status) === 200);
return (this.response && Number(this.response.status) >= 200 && Number(this.response.status) < 300);
};


Expand Down