Merge pull request #1114 from OliverLetterer/copy-http-client

Fixing -[AFHTTPClient copyWithZone:].
This commit is contained in:
Mattt Thompson 2013-07-04 22:15:38 -07:00
commit 0d0f156c2e

View file

@ -739,8 +739,8 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
HTTPClient.stringEncoding = self.stringEncoding;
HTTPClient.parameterEncoding = self.parameterEncoding;
HTTPClient.registeredHTTPOperationClassNames = [self.registeredHTTPOperationClassNames copyWithZone:zone];
HTTPClient.defaultHeaders = [self.defaultHeaders copyWithZone:zone];
HTTPClient.registeredHTTPOperationClassNames = [self.registeredHTTPOperationClassNames mutableCopyWithZone:zone];
HTTPClient.defaultHeaders = [self.defaultHeaders mutableCopyWithZone:zone];
#ifdef _SYSTEMCONFIGURATION_H
HTTPClient.networkReachabilityStatusBlock = self.networkReachabilityStatusBlock;
#endif