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

refactoring mime types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 11:55:23 +0100
parents 878b59270859
children 2a504fef4ed7
comparison
equal deleted inserted replaced
2904:0dd54ee073db 2905:ae20fccdd867
67 67
68 std::string HttpFileSender::GetContentType() 68 std::string HttpFileSender::GetContentType()
69 { 69 {
70 if (contentType_.empty()) 70 if (contentType_.empty())
71 { 71 {
72 return "application/octet-stream"; 72 return MIME_BINARY;
73 } 73 }
74 else 74 else
75 { 75 {
76 return contentType_; 76 return contentType_;
77 } 77 }