diff OrthancServer/ServerContext.cpp @ 1519:8bd0d897763f

refactoring: IHttpStreamAnswer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2015 13:15:16 +0200
parents d73a2178b319
children f938f7779bcb
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Tue Aug 11 10:36:05 2015 +0200
+++ b/OrthancServer/ServerContext.cpp	Tue Aug 11 13:15:16 2015 +0200
@@ -317,8 +317,8 @@
 
     std::auto_ptr<HttpFileSender> sender(accessor_.ConstructHttpFileSender(attachment.GetUuid(), attachment.GetContentType()));
     sender->SetContentType(GetMimeType(content));
-    sender->SetDownloadFilename(instancePublicId + ".dcm");
-    output.AnswerFile(*sender);
+    sender->SetFilename(instancePublicId + ".dcm");
+    output.AnswerStream(*sender);
   }