Mercurial > hg > orthanc
diff Core/HttpServer/HttpFileSender.h @ 2908:9d277f8ad698
new enumeration: MimeType
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 16:16:07 +0100 |
parents | 878b59270859 |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/Core/HttpServer/HttpFileSender.h Tue Oct 30 13:53:29 2018 +0100 +++ b/Core/HttpServer/HttpFileSender.h Tue Oct 30 16:16:07 2018 +0100 @@ -44,6 +44,11 @@ std::string filename_; public: + void SetContentType(MimeType contentType) + { + contentType_ = EnumerationToString(contentType); + } + void SetContentType(const std::string& contentType) { contentType_ = contentType;