File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -611,7 +611,7 @@ + (NSDictionary *)accountsFromDefaultKeychain;
611
611
result = (__bridge_transfer NSDictionary *)cfResult;
612
612
613
613
if (status != noErr) {
614
- NSAssert1 (status == errSecItemNotFound, @" Unexpected error while fetching accounts from keychain: %ld " , status);
614
+ NSAssert1 (status == errSecItemNotFound, @" Unexpected error while fetching accounts from keychain: %zd " , status);
615
615
return nil ;
616
616
}
617
617
@@ -632,7 +632,7 @@ + (void)storeAccountsInDefaultKeychain:(NSDictionary *)accounts;
632
632
data, kSecAttrGeneric ,
633
633
nil ];
634
634
OSStatus __attribute__ ((unused)) err = SecItemAdd ((__bridge CFDictionaryRef)query, NULL );
635
- NSAssert1 (err == noErr, @" Error while adding token to keychain: %ld " , err);
635
+ NSAssert1 (err == noErr, @" Error while adding token to keychain: %zd " , err);
636
636
}
637
637
638
638
+ (void )removeFromDefaultKeychain ;
@@ -643,7 +643,7 @@ + (void)removeFromDefaultKeychain;
643
643
serviceName, kSecAttrService ,
644
644
nil ];
645
645
OSStatus __attribute__ ((unused)) err = SecItemDelete ((__bridge CFDictionaryRef)query);
646
- NSAssert1 ((err == noErr || err == errSecItemNotFound), @"Error while deleting token from keychain: %ld ", err);
646
+ NSAssert1 ((err == noErr || err == errSecItemNotFound), @"Error while deleting token from keychain: %zd ", err);
647
647
648
648
}
649
649
Original file line number Diff line number Diff line change @@ -223,7 +223,9 @@ - (void)applyParameters:(NSDictionary *)parameters onRequest:(NSMutableURLReques
223
223
NSString *httpMethod = [aRequest HTTPMethod ];
224
224
if ([httpMethod caseInsensitiveCompare: @" POST" ] != NSOrderedSame
225
225
&& [httpMethod caseInsensitiveCompare: @" PUT" ] != NSOrderedSame) {
226
+
226
227
aRequest.URL = [aRequest.URL nxoauth2_URLByAddingParameters: parameters];
228
+
227
229
} else {
228
230
229
231
NSString *contentType = [aRequest valueForHTTPHeaderField: @" Content-Type" ];
@@ -241,7 +243,7 @@ - (void)applyParameters:(NSDictionary *)parameters onRequest:(NSMutableURLReques
241
243
242
244
[aRequest setHTTPBodyStream: postBodyStream];
243
245
244
- }else if ([contentType isEqualToString: @" application/x-www-form-urlencoded" ]) {
246
+ } else if ([contentType isEqualToString: @" application/x-www-form-urlencoded" ]) {
245
247
246
248
// sends the POST/PUT request as application/x-www-form-urlencoded
247
249
You can’t perform that action at this time.
0 commit comments