comparison 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
comparison
equal deleted inserted replaced
1518:eb46cc06389a 1519:8bd0d897763f
315 315
316 accessor_.SetCompressionForNextOperations(attachment.GetCompressionType()); 316 accessor_.SetCompressionForNextOperations(attachment.GetCompressionType());
317 317
318 std::auto_ptr<HttpFileSender> sender(accessor_.ConstructHttpFileSender(attachment.GetUuid(), attachment.GetContentType())); 318 std::auto_ptr<HttpFileSender> sender(accessor_.ConstructHttpFileSender(attachment.GetUuid(), attachment.GetContentType()));
319 sender->SetContentType(GetMimeType(content)); 319 sender->SetContentType(GetMimeType(content));
320 sender->SetDownloadFilename(instancePublicId + ".dcm"); 320 sender->SetFilename(instancePublicId + ".dcm");
321 output.AnswerFile(*sender); 321 output.AnswerStream(*sender);
322 } 322 }
323 323
324 324
325 void ServerContext::ReadJson(Json::Value& result, 325 void ServerContext::ReadJson(Json::Value& result,
326 const std::string& instancePublicId) 326 const std::string& instancePublicId)