Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
5405:62bb63346185 | 5407:3206537cbb56 |
---|---|
51 { | 51 { |
52 filename_ = filename; | 52 filename_ = filename; |
53 | 53 |
54 if (contentType_.empty()) | 54 if (contentType_.empty()) |
55 { | 55 { |
56 contentType_ = SystemToolbox::AutodetectMimeType(filename); | 56 MimeType mimeType = SystemToolbox::AutodetectMimeType(filename); |
57 contentType_ = EnumerationToString(mimeType); | |
57 } | 58 } |
58 } | 59 } |
59 | 60 |
60 const std::string &HttpFileSender::GetContentFilename() const | 61 const std::string &HttpFileSender::GetContentFilename() const |
61 { | 62 { |