comparison Core/HttpServer/FilesystemHttpHandler.cpp @ 3023:c9c2faf76bec

replaced 'var' by 'let' in Orthanc Explorer's JavaScript
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Dec 2018 10:22:51 +0100
parents 9d277f8ad698
children 4e43e67f8ecf
comparison
equal deleted inserted replaced
3021:2cbafb5d5a62 3023:c9c2faf76bec
161 } 161 }
162 162
163 if (SystemToolbox::IsRegularFile(p.string())) 163 if (SystemToolbox::IsRegularFile(p.string()))
164 { 164 {
165 FilesystemHttpSender sender(p); 165 FilesystemHttpSender sender(p);
166 sender.SetContentType(SystemToolbox::AutodetectMimeType(p.string()));
166 output.Answer(sender); // TODO COMPRESSION 167 output.Answer(sender); // TODO COMPRESSION
167 } 168 }
168 else if (listDirectoryContent_ && 169 else if (listDirectoryContent_ &&
169 fs::exists(p) && 170 fs::exists(p) &&
170 fs::is_directory(p)) 171 fs::is_directory(p))