-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relax checks on response status code
Currently we require a 200 status code for events and a 202 for sessions but there's no need to be so specific as any 2xx status indicates success Now we only warn on codes outside of the 2xx range, unless a specific code has been set in `options['success']`. If a specific code is given then it must match exactly, i.e. it has the same behaviour as before
- Loading branch information
1 parent
a3ee85e
commit 469689d
Showing
1 changed file
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters