update comments
This commit is contained in:
parent
62dd2e78bd
commit
e4937e7473
@ -56,23 +56,13 @@ export default function initWADOImageLoader(
|
|||||||
convertFloatPixelDataToInt: false,
|
convertFloatPixelDataToInt: false,
|
||||||
},
|
},
|
||||||
beforeSend: function (xhr) {
|
beforeSend: function (xhr) {
|
||||||
const headers = userAuthenticationService.getAuthorizationHeader();
|
//TODO should be removed in the future and request emitted by DicomWebDataSource
|
||||||
const sourceConfig = extensionManager.getActiveDataSource()?.[0].getConfig() ?? {}
|
const sourceConfig = extensionManager.getActiveDataSource()?.[0].getConfig() ?? {}
|
||||||
|
const headers = userAuthenticationService.getAuthorizationHeader();
|
||||||
const acceptHeader = generateAcceptHeader(sourceConfig.acceptHeader, sourceConfig.omitQuotationForMultipartRequest)
|
const acceptHeader = generateAcceptHeader(sourceConfig.acceptHeader, sourceConfig.omitQuotationForMultipartRequest)
|
||||||
|
|
||||||
// Request:
|
|
||||||
// JPEG-LS Lossless (1.2.840.10008.1.2.4.80) if available, otherwise accept
|
|
||||||
// whatever transfer-syntax the origin server provides.
|
|
||||||
// For now we use image/jls and image/x-jls because some servers still use the old type
|
|
||||||
// http://dicom.nema.org/medical/dicom/current/output/html/part18.html
|
|
||||||
const xhrRequestHeaders = {
|
const xhrRequestHeaders = {
|
||||||
Accept: acceptHeader
|
Accept: acceptHeader
|
||||||
/*
|
|
||||||
appConfig.omitQuotationForMultipartRequest
|
|
||||||
? 'multipart/related; type=application/octet-stream'
|
|
||||||
: 'multipart/related; type="application/octet-stream"',
|
|
||||||
// 'multipart/related; type="image/x-jls", multipart/related; type="image/jls"; transfer-syntax="1.2.840.10008.1.2.4.80", multipart/related; type="image/x-jls", multipart/related; type="application/octet-stream"; transfer-syntax=*',
|
|
||||||
*/
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (headers) {
|
if (headers) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user