Mercurial > hg > orthanc
comparison OrthancServer/ServerContext.cpp @ 1522:f938f7779bcb
fixes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Aug 2015 15:37:42 +0200 |
parents | 8bd0d897763f |
children | c388502a066d |
comparison
equal
deleted
inserted
replaced
1521:3606278d305e | 1522:f938f7779bcb |
---|---|
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->SetFilename(instancePublicId + ".dcm"); | 320 sender->SetContentFilename(instancePublicId + ".dcm"); |
321 output.AnswerStream(*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, |