chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gavincornw...@apache.org
Subject svn commit: r1619720 - /chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
Date Fri, 22 Aug 2014 09:36:58 GMT
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



Mime
View raw message