File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ - (void)setCompletionBlockWithSuccess:(void (^)(AFHTTPRequestOperation *operatio
151
151
#pragma mark - AFURLRequestOperation
152
152
153
153
- (void )pause {
154
+ [super pause ];
155
+
154
156
u_int64_t offset = 0 ;
155
157
if ([self .outputStream propertyForKey: NSStreamFileCurrentOffsetKey ]) {
156
158
offset = [(NSNumber *)[self .outputStream propertyForKey: NSStreamFileCurrentOffsetKey ] unsignedLongLongValue ];
@@ -164,8 +166,6 @@ - (void)pause {
164
166
}
165
167
[mutableURLRequest setValue: [NSString stringWithFormat: @" bytes=%llu -" , offset] forHTTPHeaderField: @" Range" ];
166
168
self.request = mutableURLRequest;
167
-
168
- [super pause ];
169
169
}
170
170
171
171
#pragma mark - NSecureCoding
@@ -199,7 +199,7 @@ - (id)copyWithZone:(NSZone *)zone {
199
199
operation.responseSerializer = [self .responseSerializer copyWithZone: zone];
200
200
operation.completionQueue = self.completionQueue ;
201
201
operation.completionGroup = self.completionGroup ;
202
-
202
+
203
203
return operation;
204
204
}
205
205
You can’t perform that action at this time.
0 commit comments