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
Accept 202 http status code (instead throwing exception). #102
Conversation
… is used by WCF IsOneWay operations
That sounds fair. Checking the OkHttp3 library, a response is counted as a success if the response is:
Do you think you could change the status check to that? |
if(is!=null) | ||
{ | ||
parseResponse(envelope, is,retHeaders); | ||
} |
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.
Is the null check needed here?
To change success condition to code >= 200 && code < 300 we need to make a bigger investigation. So as a safer solution I would merge the current pull request and later if we ensure that we can use your condition, then we will create a new pull request. We have to check for null becaues during my test when WCF service returns from IsOneWay method, then response length was 0 and the response stream was null. Which of course throws exception in parseResponse method. |
@robocik Ah right. That makes sense. Thanks for explaining :) |
Could add some changelog entry and if necessary some documentation? |
@mosabua What changes would we like to be applied? The ability to accept status code 202 as well or any code which is |
If you mean adding the broader status check and adding documentation surrounding that then yes, that's fine with me. |
This status is used by WCF IsOneWay operations