summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-01-17 17:37:17 +0300
committerGravatar Vitaly Takmazov2022-01-17 17:37:17 +0300
commitdb7c8ddc6e021006412f86bd614429ad3fd700b0 (patch)
tree04102bb59c4dbaf77148e5ae75ed408289154e1e /Juick
parentdd972b5e1e15f3e76fa3eba83be547bb97335262 (diff)
Ignore cache when making HTTP requests
Diffstat (limited to 'Juick')
-rw-r--r--Juick/API.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Juick/API.m b/Juick/API.m
index 4c3edc2..137c0b6 100644
--- a/Juick/API.m
+++ b/Juick/API.m
@@ -185,7 +185,7 @@ NSString * const JuickErrorDomain = @"JuickErrorDomain";
}
-(void) fetchDataWithURL:(NSURL *) url data:(NSData *)postData boundary:(NSString *)boundary authorizationHeader:(NSString *)header callback:(void(^)(NSData *, NSError *))callback {
- NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
+ NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:60.0];
if (header) {
[request addValue:header forHTTPHeaderField:@"Authorization"];
}