Kaydet (Commit) 6b10219e authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

Fixed libcmis handling of related multipart content types

Change-Id: I8468286be1affc635838b5329d2df72b53f5c9de
üst f3e29add
...@@ -33,3 +33,17 @@ index 7c2a8e6..e7014cb 100644 ...@@ -33,3 +33,17 @@ index 7c2a8e6..e7014cb 100644
contentLength = it->second->getLongs( ).front( ); contentLength = it->second->getLongs( ).front( );
return contentLength; return contentLength;
} }
diff --git src/libcmis/ws-relatedmultipart.cxx src/libcmis/ws-relatedmultipart.cxx
index ef91b4d..3a990e7 100644
--- src/libcmis/ws-relatedmultipart.cxx
+++ src/libcmis/ws-relatedmultipart.cxx
@@ -93,6 +93,8 @@ RelatedMultipart::RelatedMultipart( const string& body, const string& contentTyp
if ( value[0] == '"' && value[value.length() - 1] == '"' )
value = value.substr( 1, value.length( ) - 2 );
+ name = libcmis::trim( name );
+
if ( name == "start" )
{
m_startId = value;
--
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment