Browse files

Merge pull request #713 from ericflo/patch-1

Added single quote to the chars to escape
  • Loading branch information...
2 parents 121ef7a + a610a89 commit 0c74a59a3ee4a40fa27b7a8d663aa7070c39ea11 @mattt mattt committed Jan 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 AFNetworking/AFHTTPClient.m
View
2 AFNetworking/AFHTTPClient.m
@@ -81,7 +81,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 0c74a59

Please sign in to comment.