From 3f4c6a5fa793abf70d07bd5087621939815a4cae Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 14 Feb 2018 13:59:49 +0100 Subject: [PATCH] add boundary to multipart ocntent type --- src/content/content-manager.cpp | 2 -- src/content/content-type.cpp | 2 +- src/content/content-type.h | 3 +++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/content/content-manager.cpp b/src/content/content-manager.cpp index 0eb453329..ce6fe3545 100644 --- a/src/content/content-manager.cpp +++ b/src/content/content-manager.cpp @@ -23,8 +23,6 @@ #include "content-type.h" #include "content/content.h" -#define MULTIPART_BOUNDARY "---------------------------14737809831466499882746641449" - // ============================================================================= using namespace std; diff --git a/src/content/content-type.cpp b/src/content/content-type.cpp index 66b22e7f9..93e27859c 100644 --- a/src/content/content-type.cpp +++ b/src/content/content-type.cpp @@ -45,7 +45,7 @@ const ContentType ContentType::ExternalBody("message/external-body"); const ContentType ContentType::FileTransfer("application/vnd.gsma.rcs-ft-http+xml"); const ContentType ContentType::Imdn("message/imdn+xml"); const ContentType ContentType::ImIsComposing("application/im-iscomposing+xml"); -const ContentType ContentType::Multipart("multipart/mixed"); +const ContentType ContentType::Multipart("multipart/mixed;boundary=" MULTIPART_BOUNDARY); const ContentType ContentType::PlainText("text/plain"); const ContentType ContentType::ResourceLists("application/resource-lists+xml"); const ContentType ContentType::Sdp("application/sdp"); diff --git a/src/content/content-type.h b/src/content/content-type.h index d37168f08..473b0ab80 100644 --- a/src/content/content-type.h +++ b/src/content/content-type.h @@ -22,6 +22,9 @@ #include "object/clonable-object.h" + +#define MULTIPART_BOUNDARY "---------------------------14737809831466499882746641449" + // ============================================================================= LINPHONE_BEGIN_NAMESPACE