# HG changeset patch # User Sebastien Jodogne # Date 1357220472 -3600 # Node ID 1b0ffed55ab07a7b794de9a921972635245f6e48 # Parent 760d0f32cb346544f90b444296df373974f89263 fix download dicom diff -r 760d0f32cb34 -r 1b0ffed55ab0 OrthancServer/ServerContext.cpp --- 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 sender(accessor_.ConstructHttpFileSender(attachment.GetUuid())); + sender->SetContentType("application/dicom"); + sender->SetDownloadFilename(instancePublicId + ".dcm"); output.AnswerFile(*sender); }