Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Conversation

muratayusuke
Copy link
Contributor

No description provided.

if let value = parameters[key] as? String, encodedValue = value.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLHostAllowedCharacterSet()) {
requestString = requestString + "&"+key+"="+encodedValue
requestString += "&\(key)=\(encodedValue)"
} else if let value = parameters[key] as? Int {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bool type is also treated as Int, 0 or 1.

@pvzig
Copy link
Owner

pvzig commented Mar 1, 2016

👍

pvzig added a commit that referenced this pull request Mar 1, 2016
Bugfix: Do not ignore Int and Bool parameters when making requests to the web api
@pvzig pvzig merged commit 319dc9a into pvzig:master Mar 1, 2016
@muratayusuke muratayusuke deleted the bugfix/ignore_int_param branch March 1, 2016 17:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants