Skip to content

Commit

Permalink
Added fix for updates including spaces (they were resulting in 401 er…
Browse files Browse the repository at this point in the history
…rors)
  • Loading branch information
Ben Gottlieb committed Jul 29, 2009
1 parent cae52ea commit faaabd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -277,8 +277,9 @@ - (void)setParameters:(NSArray *)parameters


- (NSString *) URLEncodedString: (NSString *) string {
CFStringRef preprocessedString = CFURLCreateStringByReplacingPercentEscapesUsingEncoding(kCFAllocatorDefault, (CFStringRef) string, CFSTR(""), kCFStringEncodingUTF8);
NSString *result = (NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
(CFStringRef)string,
preprocessedString,
NULL,
CFSTR("!*'();:@&=+$,/?%#[]"),
kCFStringEncodingUTF8);
Expand Down
Binary file modified Twitter+OAuth/Libraries & Headers/libOAuth.a
Binary file not shown.

0 comments on commit faaabd2

Please sign in to comment.