- Release 0.7.6
This commit is contained in:
1 parent
4c469e404c
commit
2085bea970
7 files changed
+7474
-28542
No files matched your search
@@ -33,4 +33,6 @@
|
||||
*/
|
||||
- (void)setAuthorizationHeaderFieldWithCredential:(AFOAuthCredential *)credential;
|
||||
|
||||
- (BOOL) hasAuthorizationHeaderField;
|
||||
|
||||
@end
|
||||
@@ -32,4 +32,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (BOOL) hasAuthorizationHeaderField {
|
||||
NSString *token = [self valueForHTTPHeaderField:@"Authorization"];
|
||||
|
||||
if ([token containsString:@"Bearer"]) {
|
||||
return YES;
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user