mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 02:09:22 +00:00
correct way to handle multipart in multipart
This commit is contained in:
parent
c268421765
commit
40df4ea870
1 changed files with 2 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ Content ContentManager::contentListToMultipart (const list<Content *> &contents,
|
|||
disposition = content->getContentDisposition();
|
||||
|
||||
LinphoneContent *cContent = L_GET_C_BACK_PTR(content);
|
||||
SalBodyHandler *sbh = sal_body_handler_from_content(cContent);
|
||||
SalBodyHandler *sbh = sal_body_handler_from_content(cContent, false);
|
||||
belle_sip_multipart_body_handler_add_part(mpbh, BELLE_SIP_BODY_HANDLER(sbh));
|
||||
}
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ Content ContentManager::contentListToMultipart (const list<Content *> &contents,
|
|||
sal_body_handler_set_subtype(sbh, ContentType::Multipart.getSubType().c_str());
|
||||
sal_body_handler_set_content_type_parameter(sbh, "boundary", boundary.c_str());
|
||||
|
||||
LinphoneContent *cContent = linphone_content_from_sal_body_handler(sbh, false);
|
||||
LinphoneContent *cContent = linphone_content_from_sal_body_handler(sbh);
|
||||
belle_sip_object_unref(mpbh);
|
||||
|
||||
Content content = *L_GET_CPP_PTR_FROM_C_OBJECT(cContent);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue