We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 93aec0b + 4974daf commit d3a11ddCopy full SHA for d3a11dd
Sources/OAuth2Client/NXOAuth2Request.m
@@ -157,8 +157,7 @@ - (void)applyParameters:(NSDictionary *)someParameters onRequest:(NSMutableURLRe
157
if (!someParameters) return;
158
159
NSString *httpMethod = [aRequest HTTPMethod];
160
- if ([httpMethod caseInsensitiveCompare:@"POST"] != NSOrderedSame
161
- && [httpMethod caseInsensitiveCompare:@"PUT"] != NSOrderedSame) {
+ if ([@[@"POST",@"PUT",@"PATCH"] containsObject: [httpMethod uppercaseString]]) {
162
aRequest.URL = [aRequest.URL nxoauth2_URLByAddingParameters:someParameters];
163
} else {
164
NSInputStream *postBodyStream = [[NXOAuth2PostBodyStream alloc] initWithParameters:parameters];
0 commit comments