Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix missing copied blocks #352

Open
wants to merge 2 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+14 −0
Split
View
@@ -4099,6 +4099,20 @@ - (id)copyWithZone:(NSZone *)zone
[newRequest setShouldAttemptPersistentConnection:[self shouldAttemptPersistentConnection]];
[newRequest setPersistentConnectionTimeoutSeconds:[self persistentConnectionTimeoutSeconds]];
[newRequest setAuthenticationScheme:[self authenticationScheme]];
+#if NS_BLOCKS_AVAILABLE
+ [newRequest setStartedBlock:startedBlock];
+ [newRequest setHeadersReceivedBlock:headersReceivedBlock];
+ [newRequest setCompletionBlock:completionBlock];
+ [newRequest setFailedBlock:failureBlock];
+ [newRequest setBytesReceivedBlock:bytesReceivedBlock];
+ [newRequest setBytesSentBlock:bytesSentBlock];
+ [newRequest setDownloadSizeIncrementedBlock:downloadSizeIncrementedBlock];
+ [newRequest setUploadSizeIncrementedBlock:uploadSizeIncrementedBlock];
+ [newRequest setDataReceivedBlock:dataReceivedBlock];
+ [newRequest setAuthenticationNeededBlock:authenticationNeededBlock];
+ [newRequest setProxyAuthenticationNeededBlock:proxyAuthenticationNeededBlock];
+ [newRequest setRequestRedirectedBlock:requestRedirectedBlock];
+#endif
return newRequest;
}