Permalink
Browse files

Minor formatting

  • Loading branch information...
mattt committed May 7, 2013
1 parent b7e628a commit dbd74eb1fe57f60ba87aa9d829190327dc5b28de
Showing with 7 additions and 7 deletions.
  1. +7 −7 AFOAuth1Client/AFOAuth1Client.m
@@ -359,15 +359,15 @@ - (NSMutableURLRequest *)requestWithMethod:(NSString *)method
path:(NSString *)path
parameters:(NSDictionary *)parameters
{
- NSMutableDictionary *requestParameters = [parameters mutableCopy];
- for (NSString* parameterName in parameters) {
- if ([parameterName hasPrefix:@"oauth_"]) {
- [requestParameters removeObjectForKey:parameterName];
+ NSMutableDictionary *mutableParameters = [parameters mutableCopy];
+ for (NSString *key in parameters) {
+ if ([key hasPrefix:@"oauth_"]) {
+ [mutableParameters removeObjectForKey:key];
}
}
-
- NSMutableURLRequest *request = [super requestWithMethod:method path:path parameters:requestParameters];
-
+
+ NSMutableURLRequest *request = [super requestWithMethod:method path:path parameters:mutableParameters];
+
[request setValue:[self authorizationHeaderForMethod:method path:path parameters:parameters] forHTTPHeaderField:@"Authorization"];
[request setHTTPShouldHandleCookies:NO];

0 comments on commit dbd74eb

Please sign in to comment.