diff OrthancFramework/Sources/HttpServer/HttpFileSender.cpp @ 5407:3206537cbb56

HttpCompression: now disabled by default + only compress known compressible content types
author Alain Mazy <am@osimis.io>
date Sat, 04 Nov 2023 14:46:38 +0100
parents 0ea402b4d901
children 48b8dae6dc77
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpFileSender.cpp	Tue Oct 17 15:06:11 2023 +0200
+++ b/OrthancFramework/Sources/HttpServer/HttpFileSender.cpp	Sat Nov 04 14:46:38 2023 +0100
@@ -53,7 +53,8 @@
 
     if (contentType_.empty())
     {
-      contentType_ = SystemToolbox::AutodetectMimeType(filename);
+      MimeType mimeType = SystemToolbox::AutodetectMimeType(filename);
+      contentType_ = EnumerationToString(mimeType);
     }
   }