Mercurial > hg > orthanc
comparison Core/Enumerations.cpp @ 1146:200fcac0deb4
optimization for access to attachments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 11 Sep 2014 14:04:48 +0200 |
parents | e494ceb8d763 |
children | f5b0207967bc |
comparison
equal
deleted
inserted
replaced
1145:0479d02c6778 | 1146:200fcac0deb4 |
---|---|
547 } | 547 } |
548 | 548 |
549 // The encoding was properly detected | 549 // The encoding was properly detected |
550 return true; | 550 return true; |
551 } | 551 } |
552 | |
553 | |
554 const char* GetMimeType(FileContentType type) | |
555 { | |
556 switch (type) | |
557 { | |
558 case FileContentType_Dicom: | |
559 return "application/dicom"; | |
560 | |
561 case FileContentType_DicomAsJson: | |
562 return "application/json"; | |
563 | |
564 default: | |
565 return "application/octet-stream"; | |
566 } | |
567 } | |
552 } | 568 } |