-
Notifications
You must be signed in to change notification settings - Fork 55
More refactoring and add tests #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5350ba1
to
9f9420b
Compare
👍 |
lib/ldclient-rb/ldclient.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably check if the status is >= 300, since other 2xx responses could still indicate that everything is okay. (I realize that this is unchanged from before, but I just noticed it here.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this to res.status/100 != 2
since I assume 100 Continue
responses are also not accepted. I also fixed 2 other places where it was checking for 200
specifically.
I saw a few sporadic integration test failures when I bumped the REST wrapper to this branch. Investigating. |
@jkodumal FYI I've rebased and added 3 more commits though it shouldn't change the test status. |
Errors were fixed in #42 |
More refactoring and add tests
fix 1.0 documentation link
No description provided.