         didSendBodyData bytesSent: Int64,
         totalBytesSent: Int64,
         totalBytesExpectedToSend: Int64
-    ) {
-        if let handler = taskConfigs[task.taskIdentifier]?.progressHandler {
-            handler(
-                HTTPProgress(
-                    type: .Upload,
-                    bytesProcessed: totalBytesSent,
-                    bytesExpectedToProcess: totalBytesExpectedToSend
+        ) {
+            if let handler = taskConfigs[task.taskIdentifier]?.progressHandler {
+                handler(
+                    HTTPProgress(
+                        type: .Upload,
+                        bytesProcessed: totalBytesSent,
+                        bytesExpectedToProcess: totalBytesExpectedToSend
+                    )
                 )
-            )
-        }
+            }
     }
 
     public func URLSession(session: NSURLSession, dataTask: NSURLSessionDataTask, didReceiveData data: NSData) {

                        originalRequest:request,
                        data:NSMutableData(),
                        progressHandler: asyncProgressHandler
                    ) { (result) in
                        if let handler = asyncCompletionHandler {
                            handler(result)
                        }
                        if isSync {
                            requestResult = result
                            dispatch_semaphore_signal(semaphore)
                        }

                    }
                    if let task = makeTask(request, configuration:config) {

    public var JSONReadingOptions = NSJSONReadingOptions(rawValue: 0)

    public var reason:String {
        if  let code = self.statusCode,
            let text = statusCodeDescriptions[code] {
                return text
        }
        if let error = self.error {
            return error.localizedDescription
