Skip to content
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

Fix to set property ClientResponse.status right #214

Merged
merged 1 commit into from
Jul 22, 2019
Merged

Fix to set property ClientResponse.status right #214

merged 1 commit into from
Jul 22, 2019

Conversation

harish1992
Copy link
Contributor

Kitura-NIO wrongly returned -1 as status code.The property
ClientResponse.status now updates when ClientResponse.statusCode is
updated.Observer didSet is removed from ClientResponse.status as observers of
both status and statusCode trigger each other and cause stackoverflow.The
changes made ensure the property ClientResonse.status is set right.

Kitura-NIO wrongly returned -1 as status code.The property
ClientResponse.status now updates when ClientResponse.statusCode is
updated.Observer didSet is removed from ClientResponse.status as observers of
both status and statusCode trigger each other and cause stackoverflow.The
changes made ensure the property ClientResonse.status is set right.
@CLAassistant
Copy link

CLAassistant commented Jul 12, 2019

CLA assistant check
All committers have signed the CLA.

@harish1992
Copy link
Contributor Author

The changes have been tested with:

  • Kitura-WebSocket-NIO
  • Kitura-Sample
  • Kitura-CouchDB
  • SwiftMetrics

@pushkarnk
Copy link
Contributor

Thanks.

@pushkarnk pushkarnk merged commit 315aca7 into Kitura:master Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants