Removing setting Accept-Encoding by default.
NSURLConnection will set this to the supported formats which is a superset of gzip. (at least in 5.1 it set deflate as well)
This commit is contained in:
parent
70dff01807
commit
b614dee5bb
1 changed files with 0 additions and 3 deletions
|
|
@ -251,9 +251,6 @@ static NSString * AFPropertyListStringFromParameters(NSDictionary *parameters) {
|
|||
self.registeredHTTPOperationClassNames = [NSMutableArray array];
|
||||
|
||||
self.defaultHeaders = [NSMutableDictionary dictionary];
|
||||
|
||||
// Accept-Encoding HTTP Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
|
||||
[self setDefaultHeader:@"Accept-Encoding" value:@"gzip"];
|
||||
|
||||
// Accept-Language HTTP Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
|
||||
NSString *preferredLanguageCodes = [[NSLocale preferredLanguages] componentsJoinedByString:@", "];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue