# HG changeset patch # User Sebastien Jodogne <s.jodogne@gmail.com> # Date 1744041581 -7200 # Node ID 6e98b2ddda5aedaca9a74dbc2ccc760454027ee5 # Parent 3028d158c1657f7009768eb967fcb36a9bbf4e72 comment diff -r 3028d158c165 -r 6e98b2ddda5a OrthancServer/Sources/OrthancRestApi/OrthancRestResources.cpp --- 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);