Browse Source

Removed `String.Encoding` prefix that was not necessary…no functional changes.

Christian Noon 9 years ago
parent
commit
b468f74cf8
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Source/ParameterEncoding.swift

+ 1 - 4
Source/ParameterEncoding.swift

@@ -140,10 +140,7 @@ public struct URLEncoding: ParameterEncoding {
                 urlRequest.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
                 urlRequest.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
             }
             }
 
 
-            urlRequest.httpBody = query(parameters).data(
-                using: String.Encoding.utf8,
-                allowLossyConversion: false
-            )
+            urlRequest.httpBody = query(parameters).data(using: .utf8, allowLossyConversion: false)
         }
         }
 
 
         return urlRequest
         return urlRequest