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
Add arrayParameters to RequestType protocol #125
Conversation
Thank you for the PR. I'm considering to change the type of IMO, |
Could you merge master to fix CI? |
Rebased to master. |
Looks like OHHTTPStubs has carthage build issue.
|
if parameters.count > 0 { | ||
URLRequest.HTTPBody = try requestBodyBuilder.buildBodyFromObject(parameters) | ||
} else if let count = objectParameters.count where count > 0 { | ||
URLRequest.HTTPBody = try NSJSONSerialization.dataWithJSONObject(objectParameters, options: NSJSONWritingOptions.PrettyPrinted) |
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.
This should be URLRequest.HTTPBody = try requestBodyBuilder.buildBodyFromObject(objectParameters)
.
Thanks for pointing out. |
Nice ✨ |
Addresses #124