                         originalRequest:request,
                         data:NSMutableData(),
                         progressHandler: asyncProgressHandler
-                    ) { (result) in
-                        if let handler = asyncCompletionHandler {
-                            handler(result)
-                        }
-                        if isSync {
-                            requestResult = result
-                            dispatch_semaphore_signal(semaphore)
-                        }
+                        ) { (result) in
+                            if let handler = asyncCompletionHandler {
+                                handler(result)
+                            }
+                            if isSync {
+                                requestResult = result
+                                dispatch_semaphore_signal(semaphore)
+                            }
 
                     }
                     if let task = makeTask(request, configuration:config) {

            }
        }
    }

}

extension Just: NSURLSessionTaskDelegate, NSURLSessionDataDelegate {
    public func URLSession(

    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
