Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added single quote to the chars to escape

Ran into some issues with sending an unescaped apostrophe,
but by adding it to the list of characters to escape, this problem
is now fixed for me.
  • Loading branch information...
commit a610a89f8cb4f6eb08da31816d90afe9fbb18fbf 1 parent 121ef7a
Eric Florenzano ericflo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  AFNetworking/AFHTTPClient.m
2  AFNetworking/AFHTTPClient.m
View
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.