diff OrthancServer/ServerEnumerations.cpp @ 2905:ae20fccdd867

refactoring mime types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 11:55:23 +0100
parents 46061a91c88a
children 9d277f8ad698
line wrap: on
line diff
--- a/OrthancServer/ServerEnumerations.cpp	Tue Oct 30 10:46:17 2018 +0100
+++ b/OrthancServer/ServerEnumerations.cpp	Tue Oct 30 11:55:23 2018 +0100
@@ -176,13 +176,13 @@
     switch (type)
     {
       case FileContentType_Dicom:
-        return "application/dicom";
+        return MIME_DICOM;
 
       case FileContentType_DicomAsJson:
-        return "application/json";
+        return MIME_JSON;
 
       default:
-        return "application/octet-stream";
+        return MIME_BINARY;
     }
   }