You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Get the type
KHIFastImageType type = [self typeForImageData:data];
if (type != KHIFastImageTypeUnsupported) {
....
}
return YES;
You pass the YES, and then the requests remove the key.
Thus - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
will not call the block.
The text was updated successfully, but these errors were encountered:
siriuscn
changed the title
Could not got the block callback when the server response 403
Could not get the block callback when the server response 403
Apr 24, 2016
Thanks for you nice library!
But I found a issue.
If the server response 403, and contains http body(such as nginx), the block won't be called with error.
(BOOL)parseRequest:(_KHIFIRequest *)request
{
NSData *data = request.data;//[request.data copy];
// Get the type
KHIFastImageType type = [self typeForImageData:data];
if (type != KHIFastImageTypeUnsupported) {
....
}
return YES;
You pass the YES, and then the requests remove the key.
Thus - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error
will not call the block.
The text was updated successfully, but these errors were encountered: