chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peberl...@apache.org
Subject svn commit: r1495382 - /chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m
Date Fri, 21 Jun 2013 11:11:47 GMT
Author: peberlein
Date: Fri Jun 21 11:11:46 2013
New Revision: 1495382

URL: http://svn.apache.org/r1495382
Log:
fix for creating a document with no content stream

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=1495382&r1=1495381&r2=1495382&view=diff
==============================================================================
--- chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m (original)
+++ chemistry/objectivecmis/trunk/ObjectiveCMIS/Utils/CMISHttpUploadRequest.m Fri Jun 21 11:11:46
2013
@@ -362,6 +362,11 @@ totalBytesExpectedToWrite:(NSInteger)tot
                         self.encoderStream.delegate = nil;
                         [self.encoderStream close];
                     }
+                } else if (self.streamEndData != nil) {
+                    self.bufferOffset = 0;
+                    self.bufferLimit = self.streamEndData.length;
+                    self.dataBuffer = [NSData dataWithData:self.streamEndData];
+                    self.streamEndData = nil;
                 }
                 
                 if ((self.bufferOffset == self.bufferLimit) && (self.encoderStream
!= nil)) {



Mime
View raw message