comparison Core/HttpServer/HttpOutput.cpp @ 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 b7da58699f92
children a5cd02894534
comparison
equal deleted inserted replaced
1854:e2c3d752ee1a 1855:aa95aea0a352
440 header += *it; 440 header += *it;
441 } 441 }
442 442
443 multipartBoundary_ = Toolbox::GenerateUuid(); 443 multipartBoundary_ = Toolbox::GenerateUuid();
444 multipartContentType_ = contentType; 444 multipartContentType_ = contentType;
445 header += "Content-Type: multipart/related; type=multipart/" + subType + "; boundary=" + multipartBoundary_ + "\r\n\r\n"; 445 header += "Content-Type: multipart/" + subType + "; type=" + contentType + "; boundary=" + multipartBoundary_ + "\r\n\r\n";
446 446
447 stream_.Send(true, header.c_str(), header.size()); 447 stream_.Send(true, header.c_str(), header.size());
448 state_ = State_WritingMultipart; 448 state_ = State_WritingMultipart;
449 } 449 }
450 450