comparison Core/HttpServer/HttpOutput.cpp @ 2905:ae20fccdd867

refactoring mime types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 11:55:23 +0100
parents e02af4ca8003
children 9d277f8ad698
comparison
equal deleted inserted replaced
2904:0dd54ee073db 2905:ae20fccdd867
587 stateMachine_.SetContentLength(stream.GetContentLength()); 587 stateMachine_.SetContentLength(stream.GetContentLength());
588 588
589 std::string contentType = stream.GetContentType(); 589 std::string contentType = stream.GetContentType();
590 if (contentType.empty()) 590 if (contentType.empty())
591 { 591 {
592 contentType = "application/octet-stream"; 592 contentType = MIME_BINARY;
593 } 593 }
594 594
595 stateMachine_.SetContentType(contentType.c_str()); 595 stateMachine_.SetContentType(contentType.c_str());
596 596
597 std::string filename; 597 std::string filename;