Browse files

Flickr OAuth implementation are done through GET parameters instead o…

…f request header. Another fixed for Flickr OAuth implementation.

The URL are not built with the modified parameters (although its Authorization header is built with modified parameters).
This will not work for Flickr because its implementation depends on the query of the URL instead of the Authorization header.

  • Loading branch information...
1 parent dbf830b commit 866ea9532449e33fb742d8fc009bc25c2dabfc88 @lxcid lxcid committed Feb 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 AFOAuth1Client/AFOAuth1Client.m
@@ -338,7 +338,7 @@ - (NSMutableURLRequest *)requestWithMethod:(NSString *)method
[mutableParameters setValue:[self OAuthSignatureForMethod:method path:path parameters:mutableParameters token:self.accessToken] forKey:@"oauth_signature"];
- NSMutableURLRequest *request = [super requestWithMethod:method path:path parameters:parameters];
+ NSMutableURLRequest *request = [super requestWithMethod:method path:path parameters:mutableParameters];
[request setValue:[self authorizationHeaderForParameters:mutableParameters] forHTTPHeaderField:@"Authorization"];
[request setHTTPShouldHandleCookies:NO];

0 comments on commit 866ea95

Please sign in to comment.