Closed ghost closed 7 years ago
[PPNetworkHelper setValue: forHTTPHeaderField:] 最终也是调用的 [_sessionManager.requestSerializer setValue: forHTTPHeaderField:];
你有没有先设置[PPNetworkHelper setRequestSerializer:PPRequestSerializerJSON]; 再调用[PPNetworkHelper setValue: forHTTPHeaderField:] 设置请求头呢 @iOSwxh
如果在af里 这样设置是可用的 AFHTTPRequestSerializer *requestSerializer = [AFJSONRequestSerializer serializer];
manager.requestSerializer = requestSerializer;