-
Notifications
You must be signed in to change notification settings - Fork 43
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
When I include a “+” in the url query parameter in the salesforce.apex mothod, it seems to be replaced by a space on the server. #58
Comments
Thanks @hmuronaka, I'll look into this. To help me reproduce, can you post the code you are using to build the URL. |
Please try below queryParameters for reproduce. salesforce.apex(method: .get, path:path, queryParameters:["date": "2018-01-18T00:55:32.000+0000"])
`
Please refer my pullrequest #59 for update. |
Thanks @hmuronaka - resolved with version 6.0.3 |
@hmuronaka FYI you can use the public static let salesforceDateTimeFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZ"
return formatter
}() |
["date": "2018-01-18T00:55:32.000+0000"] is one of example. Anyway thank you your information and for merging my pullrequest! |
@hmuronaka indeed. I just meant you could, instead of writing out the date as a string, use: Thank you for the pull request. |
When I include a “+” in the url query parameter in the salesforce.apex(:method:.get, path,path, queryParameters:) mothod, it seems to be replaced by a space on the server.
When SwiftlySalesforce was in version Alamofire, I could use the “+” character was replaced with the correct value of “%2B” without any problems. Now it is replaced with ” “.
What is the correct way to build my query parameter that includes the “+” character?
https://stackoverflow.com/questions/43052657/encode-using-urlcomponents-in-swift
The text was updated successfully, but these errors were encountered: