summaryrefslogtreecommitdiff
path: root/Juick/Model/Message.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/Model/Message.m')
-rw-r--r--Juick/Model/Message.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Juick/Model/Message.m b/Juick/Model/Message.m
index a7934ac..4a6e96c 100644
--- a/Juick/Model/Message.m
+++ b/Juick/Model/Message.m
@@ -25,6 +25,7 @@
+(void) pullNextFromPath:(NSString *)path params:(NSDictionary *) params callback:(void(^)(NSArray *))callback {
AFHTTPSessionManager *manager = [APIClient sharedClient].manager;
if ([[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"] != nil) {
+ manager.requestSerializer = [AFJSONRequestSerializer serializer];
[manager.requestSerializer setAuthorizationHeaderFieldWithUsername:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"] password:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.password"]];
}
[manager GET:path parameters:params progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {