changeset 320:1b0ffed55ab0

fix download dicom
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 03 Jan 2013 14:41:12 +0100
parents 760d0f32cb34
children 47a709e22d1f
files OrthancServer/ServerContext.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);
   }