From 126f6280aed9391ea20d19bb7105f21fbd9ebd99 Mon Sep 17 00:00:00 2001 From: Liang Ma Date: Wed, 3 Apr 2024 17:58:15 -0700 Subject: [PATCH] the copy was supposed to be on the data not response --- PINFuture/Classes/Categories/PINNSURLSessionDataTaskResult.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PINFuture/Classes/Categories/PINNSURLSessionDataTaskResult.h b/PINFuture/Classes/Categories/PINNSURLSessionDataTaskResult.h index c8e8ef7..198a235 100644 --- a/PINFuture/Classes/Categories/PINNSURLSessionDataTaskResult.h +++ b/PINFuture/Classes/Categories/PINNSURLSessionDataTaskResult.h @@ -13,8 +13,8 @@ NS_ASSUME_NONNULL_BEGIN @interface PINNSURLSessionDataTaskResult : NSObject -@property (nonatomic, readonly) NSData * _Nullable data; -@property (nonatomic, copy, readonly) NSURLResponse * _Nullable response; +@property (nonatomic, copy, readonly) NSData * _Nullable data; +@property (nonatomic, readonly) NSURLResponse * _Nullable response; @property (nonatomic, readonly) NSError * _Nullable error; + (instancetype)resultWithData:(NSData * _Nullable)data