Permalink
Browse files

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)
  • Loading branch information...
1 parent 70dff01 commit b614dee5bb938abbfbf6fd2dda8d67b812dabc42 @mikelikespie committed Sep 1, 2012
Showing with 0 additions and 3 deletions.
  1. +0 −3 AFNetworking/AFHTTPClient.m
@@ -251,9 +251,6 @@ - (id)initWithBaseURL:(NSURL *)url {
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:@", "];

0 comments on commit b614dee

Please sign in to comment.