STOW-RS Accept Headers limited to one MIME type

Hi there,

I was trying to send a STOW request with the following Accept headers:Accept: application/json, application/dicom+xml

It works fine (my instance is stored) but I get the following log message:
E1115 08:56:26.893992 PluginsManager.cpp:164] Unsupported return MIME type: application/json, application/dicom+xml, will return XML

I checked the source code and I see it doesnt support multiple values for the Accept header (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
No big deal, but it could be nice to handle multiple values in the future.

Best regards,
JC

Hello,

Back to this old thread: Your issue was fixed by the following changeset that will soon be part of release 1.1 of the DICOMweb plugin:

https://bitbucket.org/sjodogne/orthanc-dicomweb/commits/105598b74e1ab205caff0a0cec97d78524603ac4

HTH,
Sébastien-