Merge pull request #291 from steipete/fix-cache-policy

The cache policy set here was from the WRONG enum.
This commit is contained in:
Mattt Thompson 2012-04-12 20:04:00 -07:00
commit 673e70525a

View file

@ -692,7 +692,7 @@ static inline NSString * AFMultipartFormFinalBoundary() {
}
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:fileURL];
[request setCachePolicy:NSURLCacheStorageNotAllowed];
[request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
NSURLResponse *response = nil;
NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:error];