comparison OrthancFramework/Sources/HttpServer/FilesystemHttpHandler.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
comparison
equal deleted inserted replaced
5405:62bb63346185 5407:3206537cbb56
151 151
152 if (SystemToolbox::IsRegularFile(p.string())) 152 if (SystemToolbox::IsRegularFile(p.string()))
153 { 153 {
154 FilesystemHttpSender sender(p); 154 FilesystemHttpSender sender(p);
155 sender.SetContentType(SystemToolbox::AutodetectMimeType(p.string())); 155 sender.SetContentType(SystemToolbox::AutodetectMimeType(p.string()));
156 output.Answer(sender); // TODO COMPRESSION 156 output.Answer(sender);
157 } 157 }
158 else if (listDirectoryContent_ && 158 else if (listDirectoryContent_ &&
159 fs::exists(p) && 159 fs::exists(p) &&
160 fs::is_directory(p)) 160 fs::is_directory(p))
161 { 161 {