summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-01-21 11:31:59 +0300
committerGravatar Vitaly Takmazov2022-01-21 11:31:59 +0300
commit361887bb5a96dbc6ce71a943fd4cacb2389d1bbc (patch)
treea8c530147960f0873c936e94b58b71560e6b4730 /Juick
parent131b1441449e90bdd20cf1ae75d22c378477db15 (diff)
Revert "Ignore cache when making HTTP requests"
This reverts commit db7c8ddc6e021006412f86bd614429ad3fd700b0.
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 137c0b6..4c3edc2 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 cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:60.0];
+ NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
if (header) {
[request addValue:header forHTTPHeaderField:@"Authorization"];
}