marinofaggiana 5 năm trước cách đây
mục cha
commit
8661b8166d
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      iOSClient/Networking/NCCommunication.swift

+ 1 - 4
iOSClient/Networking/NCCommunication.swift

@@ -71,10 +71,7 @@ class NCCommunication: NSObject {
         // Method
         let method = HTTPMethod(rawValue: "MKCOL")
         
-        AF.request(url, method: method, parameters:nil, encoding: URLEncoding.default, headers: headers, interceptor: nil).validate(statusCode: 200..<300).responseData { (response) in
-            
-            let x = response.response?.statusCode
-            
+        AF.request(url, method: method, parameters:nil, encoding: URLEncoding.default, headers: headers, interceptor: nil).validate(statusCode: 200..<300).response { (response) in
             switch response.result {
             case.failure(let error):
                 completionHandler(error)