Explorar o código

Fix fileURLOrData passthrough in network observer

Completion handler may be expecting fileURL so should always pass through the response that the session task gave us.
Jude Venn %!s(int64=11) %!d(string=hai) anos
pai
achega
d9ecb2359b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Classes/Network/PonyDebugger/FLEXNetworkObserver.m

+ 1 - 1
Classes/Network/PonyDebugger/FLEXNetworkObserver.m

@@ -565,7 +565,7 @@ didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask delegate:(id <NSU
 
         // Call through to the original completion handler
         if (completion) {
-            completion(data, response, error);
+            completion(fileURLOrData, response, error);
         }
     };
     return completionWrapper;