From 57c8c45a4730fe7c980b8b7eadf94ca60b97db43 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 3 Feb 2014 16:51:47 +0400 Subject: Still fighting with scroll :( --- Juick/User.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Juick/User.m') diff --git a/Juick/User.m b/Juick/User.m index 6f1678a..e1bef3a 100644 --- a/Juick/User.m +++ b/Juick/User.m @@ -36,6 +36,7 @@ if (operation.HTTPRequestOperation.response.statusCode == 400) { callback(YES); } else { + [manager.HTTPClient setAuthorizationHeaderWithUsername:nil password:nil]; callback(NO); } }]; @@ -59,7 +60,7 @@ [operation setCompletionBlockWithSuccess:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) { callback([[mappingResult array] firstObject]); } failure:^(RKObjectRequestOperation *operation, NSError *error) { - NSLog(@"REST Error: %@", error); + callback(nil); }]; [operation start]; } -- cgit v1.2.3