Permalink
Browse files

URL path should not be lowercased. This causes problems specifically …

…with Google Data API's, I'm not sure what is specified in the OAuth spec.But Google OAuth paths look like this: "/accounts/OAuthGetRequestToken" -- and lowercasing that string causes Google to throw 'invalid_signature' errors.
  • Loading branch information...
1 parent 506891a commit 207f9414e62d4609dc0d4ff1dc19b9d22414a841 @nrj committed Nov 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 GCOAuth.m
View
2 GCOAuth.m
@@ -172,7 +172,7 @@ - (NSString *)signatureBase {
NSString *URLString = [NSString stringWithFormat:@"%@://%@%@",
[[URL scheme] lowercaseString],
[[URL host] lowercaseString],
- [[URL path] lowercaseString]];
+ [URL path]];
// create components
NSArray *components = [NSArray arrayWithObjects:

0 comments on commit 207f941

Please sign in to comment.