Mercurial > hg > orthanc
diff Core/HttpServer/FilesystemHttpHandler.cpp @ 1519:8bd0d897763f
refactoring: IHttpStreamAnswer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2015 13:15:16 +0200 |
parents | 4f8c8ef114db |
children | 3606278d305e |
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpHandler.cpp Tue Aug 11 10:36:05 2015 +0200 +++ b/Core/HttpServer/FilesystemHttpHandler.cpp Tue Aug 11 13:15:16 2015 +0200 @@ -155,9 +155,8 @@ if (fs::exists(p) && fs::is_regular_file(p)) { - FilesystemHttpSender(p).Send(output); // TODO COMPRESSION - - //output.AnswerFileAutodetectContentType(p.string()); + FilesystemHttpSender sender(p); + output.Answer(sender); // TODO COMPRESSION } else if (listDirectoryContent_ && fs::exists(p) &&