diff OrthancFramework/Sources/Enumerations.cpp @ 5113:a3c3f13368ea

clarification that "image/jpg" is not a correct MIME type
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2022 14:28:50 +0100
parents b89833d7ce22
children 0ea402b4d901
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp	Wed Nov 23 11:47:44 2022 +0100
+++ b/OrthancFramework/Sources/Enumerations.cpp	Wed Nov 23 14:28:50 2022 +0100
@@ -1728,8 +1728,12 @@
       target = MimeType_Dicom;
       return true;
     }
-    else if (source == MIME_JPEG || source == MIME_JPG)
+    else if (source == MIME_JPEG ||
+             source == "image/jpg")
     {
+      // Note the tolerance for "image/jpg", which is *not* a standard MIME type
+      // https://groups.google.com/g/orthanc-users/c/Y5x37UFKiDg/m/1zI260KTAwAJ
+      // https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types
       target = MimeType_Jpeg;
       return true;
     }