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.
1 parent 5a818c1 commit cf36ae1Copy full SHA for cf36ae1
Sources/OAuth2Client/NXOAuth2Request.m
@@ -157,7 +157,7 @@ - (void)applyParameters:(NSDictionary *)someParameters onRequest:(NSMutableURLRe
157
if (!someParameters) return;
158
159
NSString *httpMethod = [aRequest HTTPMethod];
160
- if ([@[@"POST",@"PUT",@"PATCH"] containsObject: [httpMethod uppercaseString]]) {
+ if (![@[@"POST",@"PUT",@"PATCH"] containsObject: [httpMethod uppercaseString]]) {
161
aRequest.URL = [aRequest.URL nxoauth2_URLByAddingParameters:someParameters];
162
} else {
163
NSInputStream *postBodyStream = [[NXOAuth2PostBodyStream alloc] initWithParameters:parameters];
0 commit comments