大数据上报httpbody设置gzip压缩 review by 尹诚
Showing
2 changed files
with
3 additions
and
2 deletions
1 | Pod::Spec.new do |s| | 1 | Pod::Spec.new do |s| |
2 | s.name = "YH_Analytics" | 2 | s.name = "YH_Analytics" |
3 | - s.version = "1.0.0" | 3 | + s.version = "1.0.1" |
4 | s.summary = "Analytics Kit" | 4 | s.summary = "Analytics Kit" |
5 | s.description = <<-DESC | 5 | s.description = <<-DESC |
6 | Analytics Kit | 6 | Analytics Kit |
7 | DESC | 7 | DESC |
8 | s.homepage = "http://git.yoho.cn/ios/yh_analytics" | 8 | s.homepage = "http://git.yoho.cn/ios/yh_analytics" |
9 | s.license = 'MIT' | 9 | s.license = 'MIT' |
10 | - s.author = { "wangqianjun" => "wangqianjun168@163.com" } | 10 | + s.author = { "iOSdev" => "iosdev@yoho.cn" } |
11 | s.source = { :git => "http://git.yoho.cn/ios/yh_analytics.git", | 11 | s.source = { :git => "http://git.yoho.cn/ios/yh_analytics.git", |
12 | :branch => 'yoho', | 12 | :branch => 'yoho', |
13 | :tag => s.version.to_s } | 13 | :tag => s.version.to_s } |
@@ -38,6 +38,7 @@ | @@ -38,6 +38,7 @@ | ||
38 | self.httpClient.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/plain"]; | 38 | self.httpClient.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/plain"]; |
39 | self.httpClient.securityPolicy.allowInvalidCertificates = YES; | 39 | self.httpClient.securityPolicy.allowInvalidCertificates = YES; |
40 | self.httpClient.operationQueue.maxConcurrentOperationCount = 6; | 40 | self.httpClient.operationQueue.maxConcurrentOperationCount = 6; |
41 | + [self.httpClient.requestSerializer setValue:@"gzip" forHTTPHeaderField:@"Content-Encoding"]; | ||
41 | 42 | ||
42 | self.baiduManager = [AFHTTPRequestOperationManager manager]; | 43 | self.baiduManager = [AFHTTPRequestOperationManager manager]; |
43 | AFHTTPResponseSerializer *responseSerializer = [AFHTTPResponseSerializer serializer]; | 44 | AFHTTPResponseSerializer *responseSerializer = [AFHTTPResponseSerializer serializer]; |
-
Please register or login to post a comment