comparison Core/HttpServer/HttpOutput.cpp @ 3416:541c787e2230

reorganization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Jun 2019 21:38:34 +0200
parents 0528a6c36f3d
children 2f6dcb9c8cc1
comparison
equal deleted inserted replaced
3415:2a821deece64 3416:541c787e2230
501 { 501 {
502 // Quote the content type because of the forward slash 502 // Quote the content type because of the forward slash
503 tmp = "\"" + contentType + "\""; 503 tmp = "\"" + contentType + "\"";
504 } 504 }
505 505
506 multipartBoundary_ = Toolbox::GenerateUuid(); 506 multipartBoundary_ = Toolbox::GenerateUuid() + "-" + Toolbox::GenerateUuid();
507 multipartContentType_ = contentType; 507 multipartContentType_ = contentType;
508 header += ("Content-Type: multipart/" + subType + "; type=" + 508 header += ("Content-Type: multipart/" + subType + "; type=" +
509 tmp + "; boundary=" + multipartBoundary_ + "\r\n\r\n"); 509 tmp + "; boundary=" + multipartBoundary_ + "\r\n\r\n");
510 510
511 stream_.Send(true, header.c_str(), header.size()); 511 stream_.Send(true, header.c_str(), header.size());