Skip to content

Commit

Permalink
remove percent encoding on request's data
Browse files Browse the repository at this point in the history
  • Loading branch information
abiaad committed Apr 19, 2016
1 parent f03067c commit 79ff998
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/RequestParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ class RequestParser {
for postItem in postArray {
let pair = postItem.splitWithCharacter("=")
if pair.count == 2 {
request.data[pair[0]] = pair[1]
let key = pair[0]
let encodedValue = pair[1]
if let value = encodedValue.removingPercentEncoding {
request.data[key] = value
}
}
}

Expand Down

0 comments on commit 79ff998

Please sign in to comment.