Explorar el Código

[Issue #162] Adding missing space to stringByAddingPercentEncodingWithAllowedCharacters character set

Mattt Thompson hace 11 años
padre
commit
942cf29836
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/Alamofire.swift

+ 1 - 1
Source/Alamofire.swift

@@ -151,7 +151,7 @@ public enum ParameterEncoding {
     }
 
     func escape(string: String) -> String {
-        let allowedCharacters =  NSCharacterSet(charactersInString:"=\"#%/<>?@\\^`{}[]|&").invertedSet
+        let allowedCharacters =  NSCharacterSet(charactersInString:" =\"#%/<>?@\\^`{}[]|&").invertedSet
         return string.stringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters) ?? string
     }
 }