Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 320:1b0ffed55ab0
fix download dicom
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jan 2013 14:41:12 +0100 |
parents | 4eea080e6e7a |
children | 2cef9c2d4148 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Thu Jan 03 13:19:51 2013 +0100 +++ b/OrthancServer/ServerContext.cpp Thu Jan 03 14:41:12 2013 +0100 @@ -136,7 +136,10 @@ } accessor_.SetCompressionForNextOperations(attachment.GetCompressionType()); + std::auto_ptr<HttpFileSender> sender(accessor_.ConstructHttpFileSender(attachment.GetUuid())); + sender->SetContentType("application/dicom"); + sender->SetDownloadFilename(instancePublicId + ".dcm"); output.AnswerFile(*sender); }