comparison 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
comparison
equal deleted inserted replaced
2904:0dd54ee073db 2905:ae20fccdd867
174 } 174 }
175 175
176 switch (type) 176 switch (type)
177 { 177 {
178 case FileContentType_Dicom: 178 case FileContentType_Dicom:
179 return "application/dicom"; 179 return MIME_DICOM;
180 180
181 case FileContentType_DicomAsJson: 181 case FileContentType_DicomAsJson:
182 return "application/json"; 182 return MIME_JSON;
183 183
184 default: 184 default:
185 return "application/octet-stream"; 185 return MIME_BINARY;
186 } 186 }
187 } 187 }
188 188
189 FileContentType StringToContentType(const std::string& str) 189 FileContentType StringToContentType(const std::string& str)
190 { 190 {