Skip to content

Commit

Permalink
[Issue Alamofire#370] Updating legal characters to be escaped accordi…
Browse files Browse the repository at this point in the history
…ng to RFC 3986 Section 3.4

Signed-off-by: Mattt Thompson <[email protected]>
  • Loading branch information
slizeray authored and mattt committed Mar 26, 2015
1 parent 86c877e commit 9075691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Alamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public enum ParameterEncoding {
}

func escape(string: String) -> String {
let legalURLCharactersToBeEscaped: CFStringRef = ":/?&=;+!@#$()',*"
let legalURLCharactersToBeEscaped: CFStringRef = ":&=;+!@#$()',*"
return CFURLCreateStringByAddingPercentEscapes(nil, string, nil, legalURLCharactersToBeEscaped, CFStringBuiltInEncodings.UTF8.rawValue)
}
}
Expand Down

0 comments on commit 9075691

Please sign in to comment.