         return task
     }
 
-    let kHTTPMultipartBodyBoundary = "Ju5tH77P15Aw350m3"
-
     func synthesizeMultipartBody(data:[String:AnyObject], files:[String:HTTPFile]) -> NSData? {
         var body = NSMutableData()
-        let boundary = "--\(kHTTPMultipartBodyBoundary)\r\n".dataUsingEncoding(NSUTF8StringEncoding)!
+        let boundary = "--\(self.defaults.multipartBoundary)\r\n".dataUsingEncoding(defaults.encoding)!
         for (k,v) in data {
             let valueToSend:AnyObject = v is NSNull ? "null" : v
             body.appendData(boundary)
-            body.appendData("Content-Disposition: form-data; name=\"\(k)\"\r\n\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
-            body.appendData("\(valueToSend)\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
+            body.appendData("Content-Disposition: form-data; name=\"\(k)\"\r\n\r\n".dataUsingEncoding(defaults.encoding)!)
+            body.appendData("\(valueToSend)\r\n".dataUsingEncoding(defaults.encoding)!)
         }
 
         for (k,v) in files {

                partMimetype = mimetype
            }
            if let content = partContent, let filename = partFilename {
                body.appendData(NSData(data: "Content-Disposition: form-data; name=\"\(k)\"; filename=\"\(filename)\"\r\n".dataUsingEncoding(NSUTF8StringEncoding)!))
                if let type = partMimetype {
                    body.appendData("Content-Type: \(type)\r\n\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
                } else {
                    body.appendData("\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
                }
                body.appendData(content)
                body.appendData("\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
            }
        }
        if body.length > 0 {
            body.appendData("--\(kHTTPMultipartBodyBoundary)--\r\n".dataUsingEncoding(NSUTF8StringEncoding)!)
        }
        return body
    }


}

public enum HTTPFile {
    case URL(NSURL,String?) // URL to a file, mimetype
    case Data(String,NSData,String?) // filename, data, mimetype
