changeset 6095:6e98b2ddda5a

comment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 07 Apr 2025 17:59:41 +0200 (5 weeks ago)
parents 3028d158c165
children 97d69fb5958e
files OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Mon Apr 07 12:41:04 2025 +0200
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp	Mon Apr 07 17:59:41 2025 +0200
@@ -976,6 +976,8 @@
         ImageToEncode image(decoded, mode, invert);
 
         HttpContentNegociation negociation;
+
+        // The first call to "Register()" indicates the default content type (here, PNG)
         EncodePng png(image);
         negociation.Register(MIME_PNG, png);