Browse Source

Update MultipartFormData.swift

fix append overload parameter name withN -> withName
Joshua Hudson 9 years ago
parent
commit
a4734aa684
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/MultipartFormData.swift

+ 1 - 1
Source/MultipartFormData.swift

@@ -175,7 +175,7 @@ public class MultipartFormData {
     /// - parameter name:     The name to associate with the data in the `Content-Disposition` HTTP header.
     /// - parameter fileName: The filename to associate with the data in the `Content-Disposition` HTTP header.
     /// - parameter mimeType: The MIME type to associate with the data in the `Content-Type` HTTP header.
-    public func append(_ data: Data, withN name: String, fileName: String, mimeType: String) {
+    public func append(_ data: Data, withName name: String, fileName: String, mimeType: String) {
         let headers = contentHeaders(withName: name, fileName: fileName, mimeType: mimeType)
         let stream = InputStream(data: data)
         let length = UInt64(data.count)