3

I'm using SDWebImage to fetch images in my project, but I'm facing just one issue that I haven't been able to solve so far.

Basically if an image has a temporary redirect (307 redirect which nowadays is a standard code for redirect) the library doesn't follow the redirect and just returns an error.

This doesn't happen with images with a 302 redirect. Any ideas how to solve this problem?

PS: Just in case someone needs the code on how I'm loading the images, I'm doing this:

SDWebImageManager *manager = [SDWebImageManager sharedManager];
[manager downloadWithURL:imageURL
                 options:0
                progress:^(NSInteger receivedSize, NSInteger expectedSize) {
                     // progression tracking code
                }
               completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished) {
                if (image) {
                    [_photo setImage:image];
                }
            }];
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
albertosh
  • 2,416
  • 7
  • 25
  • 32

0 Answers0