comparison Core/HttpServer/HttpOutput.cpp @ 2172:84d1d392a9ab

GenerateUuid() not available in sandboxed environments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2016 12:06:00 +0100
parents 1845512f8914
children a3a65de1840f
comparison
equal deleted inserted replaced
2171:35febe19e874 2172:84d1d392a9ab
33 #include "../PrecompiledHeaders.h" 33 #include "../PrecompiledHeaders.h"
34 #include "HttpOutput.h" 34 #include "HttpOutput.h"
35 35
36 #include "../Logging.h" 36 #include "../Logging.h"
37 #include "../OrthancException.h" 37 #include "../OrthancException.h"
38 #include "../SystemToolbox.h"
38 #include "../Toolbox.h" 39 #include "../Toolbox.h"
39 #include "../Compression/GzipCompressor.h" 40 #include "../Compression/GzipCompressor.h"
40 #include "../Compression/ZlibCompressor.h" 41 #include "../Compression/ZlibCompressor.h"
41 42
42 #include <iostream> 43 #include <iostream>
436 } 437 }
437 438
438 header += *it; 439 header += *it;
439 } 440 }
440 441
441 multipartBoundary_ = Toolbox::GenerateUuid(); 442 multipartBoundary_ = SystemToolbox::GenerateUuid();
442 multipartContentType_ = contentType; 443 multipartContentType_ = contentType;
443 header += "Content-Type: multipart/" + subType + "; type=" + contentType + "; boundary=" + multipartBoundary_ + "\r\n\r\n"; 444 header += "Content-Type: multipart/" + subType + "; type=" + contentType + "; boundary=" + multipartBoundary_ + "\r\n\r\n";
444 445
445 stream_.Send(true, header.c_str(), header.size()); 446 stream_.Send(true, header.c_str(), header.size());
446 state_ = State_WritingMultipart; 447 state_ = State_WritingMultipart;