diff 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
line wrap: on
line diff
--- a/Core/HttpServer/HttpOutput.cpp	Tue Oct 30 10:46:17 2018 +0100
+++ b/Core/HttpServer/HttpOutput.cpp	Tue Oct 30 11:55:23 2018 +0100
@@ -589,7 +589,7 @@
     std::string contentType = stream.GetContentType();
     if (contentType.empty())
     {
-      contentType = "application/octet-stream";
+      contentType = MIME_BINARY;
     }
 
     stateMachine_.SetContentType(contentType.c_str());