Author: gavincornwell
Date: Fri Aug 22 09:36:58 2014
New Revision: 1619720
URL: http://svn.apache.org/r1619720
Log:
Minor adjustment to conditional include for CMIS-831, strangely TARGET_OS_MAC
is always set to 1 so the code was not being included for iOS target.
Modified:
chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
Modified:
chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
URL:
http://svn.apache.org/viewvc/chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m?rev=1619720&r1=1619719&r2=1619720&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
(original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
Fri Aug 22 09:36:58 2014
@@ -308,7 +308,7 @@ totalBytesExpectedToWrite:(NSInteger)tot
{
switch (eventCode){
case NSStreamEventOpenCompleted:{
-#ifndef TARGET_OS_MAC
+#if TARGET_OS_IPHONE
// this fix breaks POST requests on MacOS targets
if (self.combinedInputStream.streamStatus != NSStreamStatusOpen) {
[self.combinedInputStream open]; // this seems to work around
the 'Stream ... is sending an event before being opened' Apple bug