cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
570 stars 290 forks source link

[Feature Request] Change media type #1503

Open Saveriu opened 2 weeks ago

Saveriu commented 2 weeks ago

What feature or change would you like to see made?

The current media type in the Accept header is: multipart/related; type=application/octet-stream; transfer-syntax=*

It seems that it should be: multipart/related; type="application/octet-stream"; transfer-syntax=*

Why should we prioritize this feature?

With a Spring Boot backend, by default, all frames request are not valid (406)

sedghi commented 3 days ago

we should make it configurable, can you create a PR for us? i think OHIF has this logic https://github.com/OHIF/Viewers/blob/1456a493d66c90c787b022256c9f2846afb115fc/platform/core/src/utils/generateAcceptHeader.ts