Browse files

Merge pull request #38 from Picturelife/master

Don't Escape Tildes as per Instructions in RFC 3986 and OAuth 1.0 Spec
  • Loading branch information...
2 parents f98e76f + e656b0e commit df5613b12ca0616ccd55b32badebfcfafc86a035 @mattt mattt committed May 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 AFOAuth1Client/AFOAuth1Client.m
View
2 AFOAuth1Client/AFOAuth1Client.m
@@ -62,7 +62,7 @@
}
static NSString * AFPercentEscapedQueryStringPairMemberFromStringWithEncoding(NSString *string, NSStringEncoding encoding) {
- static NSString * const kAFCharactersToBeEscaped = @":/?&=;+!@#$()~',";
+ static NSString * const kAFCharactersToBeEscaped = @":/?&=;+!@#$()',";
static NSString * const kAFCharactersToLeaveUnescaped = @"[].";
return (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (__bridge CFStringRef)string, (__bridge CFStringRef)kAFCharactersToLeaveUnescaped, (__bridge CFStringRef)kAFCharactersToBeEscaped, CFStringConvertNSStringEncodingToEncoding(encoding));

0 comments on commit df5613b

Please sign in to comment.