Authored by 朱小军

大数据上报httpbody设置gzip压缩 review by 尹诚

Pod::Spec.new do |s|
s.name = "YH_Analytics"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "Analytics Kit"
s.description = <<-DESC
Analytics Kit
DESC
s.homepage = "http://git.yoho.cn/ios/yh_analytics"
s.license = 'MIT'
s.author = { "wangqianjun" => "wangqianjun168@163.com" }
s.author = { "iOSdev" => "iosdev@yoho.cn" }
s.source = { :git => "http://git.yoho.cn/ios/yh_analytics.git",
:branch => 'yoho',
:tag => s.version.to_s }
... ...
... ... @@ -38,6 +38,7 @@
self.httpClient.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/plain"];
self.httpClient.securityPolicy.allowInvalidCertificates = YES;
self.httpClient.operationQueue.maxConcurrentOperationCount = 6;
[self.httpClient.requestSerializer setValue:@"gzip" forHTTPHeaderField:@"Content-Encoding"];
self.baiduManager = [AFHTTPRequestOperationManager manager];
AFHTTPResponseSerializer *responseSerializer = [AFHTTPResponseSerializer serializer];
... ...