...
|
...
|
@@ -512,7 +512,7 @@ forHTTPHeaderField:(NSString *)field |
|
|
mutableRequest.URL = [NSURL URLWithString:[[mutableRequest.URL absoluteString] stringByAppendingFormat:mutableRequest.URL.query ? @"&%@" : @"?%@", query]];
|
|
|
} else {
|
|
|
if (![mutableRequest valueForHTTPHeaderField:@"Content-Type"]) {
|
|
|
[mutableRequest setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
|
|
|
[mutableRequest setValue:@"application/x-www-form-urlencoded; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
|
|
|
}
|
|
|
[mutableRequest setHTTPBody:[query dataUsingEncoding:self.stringEncoding]];
|
|
|
|
...
|
...
|
|