When when I use a POST using AlamoFire one of the String param's has added characters to it? Any idea?
let email = emailText.text
Alamofire.request("https://xxxx", method: .post, parameters: ["subscribed": true,"address": email],encoding: URLEncoding.httpBody, headers: headers).validate()
.log().responseJSON {
response in
This is what the params look like
address=Optional%28%22Adam%40yahoo.com%22%29&subscribed=1
This is what it looks like if I hard code the email to
let email = "adam@yahoo.com"
Result
address=adam%40yahoo.com&subscribed=1