Przeglądaj źródła

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 11 lat temu
rodzic
commit
d9ecb2359b

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

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