changeset 1855:aa95aea0a352

Fix formatting of multipart HTTP answers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Dec 2015 16:34:24 +0100
parents e2c3d752ee1a
children 36ab170733d6
files Core/HttpServer/HttpOutput.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.cpp	Tue Dec 01 15:43:23 2015 +0100
+++ b/Core/HttpServer/HttpOutput.cpp	Tue Dec 01 16:34:24 2015 +0100
@@ -442,7 +442,7 @@
 
     multipartBoundary_ = Toolbox::GenerateUuid();
     multipartContentType_ = contentType;
-    header += "Content-Type: multipart/related; type=multipart/" + subType + "; boundary=" + multipartBoundary_ + "\r\n\r\n";
+    header += "Content-Type: multipart/" + subType + "; type=" + contentType + "; boundary=" + multipartBoundary_ + "\r\n\r\n";
 
     stream_.Send(true, header.c_str(), header.size());
     state_ = State_WritingMultipart;