Mercurial > hg > orthanc
comparison Core/HttpServer/HttpOutput.cpp @ 2257:b8e07269da72
revert commit #69b0f4e, as quoting is only OPTIONAL, so we preserve backward compatibility
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 Feb 2017 15:08:33 +0100 |
parents | 69b0f4e8a49b |
children | 878b59270859 |
comparison
equal
deleted
inserted
replaced
2256:de1ba22fd28a | 2257:b8e07269da72 |
---|---|
440 header += *it; | 440 header += *it; |
441 } | 441 } |
442 | 442 |
443 multipartBoundary_ = SystemToolbox::GenerateUuid(); | 443 multipartBoundary_ = SystemToolbox::GenerateUuid(); |
444 multipartContentType_ = contentType; | 444 multipartContentType_ = contentType; |
445 header += "Content-Type: multipart/" + subType + "; type=\"" + contentType + "\"; 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 |