Browse Source

[Issue #370] Updating legal characters to be escaped according to RFC 3986 Section 3.4

Signed-off-by: Mattt Thompson <m@mattt.me>
Stephane Lizeray 11 years ago
parent
commit
9075691ca5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Alamofire.swift

+ 1 - 1
Source/Alamofire.swift

@@ -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)
     }
 }