fix: add the quotation exclusion for accept header for our configs (#3006)

* fix: revert the quotation inclusion for accept header to be off by default

* changed all configs
This commit is contained in:
Alireza authored and GitHub committed 2022-11-04 09:01:34 -04:00
1 parent 7dc9b3549f
commit 3d0d09e1bc
16 files changed
+34 -2

No files matched your search

@@ -52,7 +52,7 @@ export default function initWADOImageLoader(
// we should set this flag to false. // we should set this flag to false.
convertFloatPixelDataToInt: false, convertFloatPixelDataToInt: false,
}, },
beforeSend: function (xhr) { beforeSend: function(xhr) {
const headers = UserAuthenticationService.getAuthorizationHeader(); const headers = UserAuthenticationService.getAuthorizationHeader();
// Request: // Request:
@@ -61,7 +61,9 @@ export default function initWADOImageLoader(
// For now we use image/jls and image/x-jls because some servers still use the old type // 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 // http://dicom.nema.org/medical/dicom/current/output/html/part18.html
const xhrRequestHeaders = { const xhrRequestHeaders = {
Accept: (appConfig.ommitQuotationFromMultipartRequest) ? 'multipart/related; type=application/octet-stream' : 'multipart/related; type="application/octet-stream"' Accept: 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=*', // '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=*',
}; };
+2
View File
@@ -4,6 +4,8 @@ window.config = {
extensions: [], extensions: [],
modes: [], modes: [],
showStudyList: true, showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
// filterQueryParam: false, // filterQueryParam: false,
dataSources: [ dataSources: [
{ {
+2
View File
@@ -5,6 +5,8 @@ window.config = {
modes: [], modes: [],
showStudyList: true, showStudyList: true,
maxNumberOfWebWorkers: 3, maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
maxNumRequests: { maxNumRequests: {
interaction: 100, interaction: 100,
thumbnail: 75, thumbnail: 75,
+2
View File
@@ -2,6 +2,8 @@ window.config = {
routerBasename: '/', routerBasename: '/',
extensions: [], extensions: [],
showStudyList: true, showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
servers: { servers: {
dicomWeb: [ dicomWeb: [
{ {
@@ -4,6 +4,8 @@ window.config = {
extensions: [], extensions: [],
modes: [], modes: [],
showStudyList: true, showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
// filterQueryParam: false, // filterQueryParam: false,
dataSources: [ dataSources: [
{ {
@@ -5,6 +5,8 @@ window.config = {
modes: [], modes: [],
showStudyList: true, showStudyList: true,
maxNumberOfWebWorkers: 3, maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
// filterQueryParam: false, // filterQueryParam: false,
dataSources: [ dataSources: [
{ {
@@ -3,6 +3,8 @@ window.config = {
showStudyList: true, showStudyList: true,
extensions: [], extensions: [],
modes: [], modes: [],
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
dataSources: [ dataSources: [
{ {
friendlyName: 'Orthanc Server', friendlyName: 'Orthanc Server',
@@ -1,6 +1,8 @@
window.config = { window.config = {
routerBasename: '/', routerBasename: '/',
showStudyList: true, showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
servers: { servers: {
// This is an array, but we'll only use the first entry for now // This is an array, but we'll only use the first entry for now
dicomWeb: [ dicomWeb: [
@@ -3,6 +3,8 @@ window.config = {
showStudyList: true, showStudyList: true,
extensions: [], extensions: [],
modes: [], modes: [],
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
dataSources: [ dataSources: [
{ {
friendlyName: 'Orthanc Server', friendlyName: 'Orthanc Server',
+2
View File
@@ -4,6 +4,8 @@ window.config = {
extensions: [], extensions: [],
modes: [], modes: [],
showStudyList: true, showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
// filterQueryParam: false, // filterQueryParam: false,
dataSources: [ dataSources: [
{ {
+2
View File
@@ -1,6 +1,8 @@
window.config = { window.config = {
routerBasename: '/', routerBasename: '/',
enableGoogleCloudAdapter: false, enableGoogleCloudAdapter: false,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
// This is an array, but we'll only use the first entry for now // This is an array, but we'll only use the first entry for now
oidc: [ oidc: [
{ {
+2
View File
@@ -1,6 +1,8 @@
window.config = { window.config = {
routerBasename: '/', routerBasename: '/',
enableGoogleCloudAdapter: true, enableGoogleCloudAdapter: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
servers: { servers: {
// This is an array, but we'll only use the first entry for now // This is an array, but we'll only use the first entry for now
dicomWeb: [], dicomWeb: [],
@@ -3,6 +3,8 @@ window.config = {
showStudyList: true, showStudyList: true,
extensions: [], extensions: [],
modes: [], modes: [],
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
dataSources: [ dataSources: [
{ {
friendlyName: 'DCM4CHEE Server', friendlyName: 'DCM4CHEE Server',
@@ -5,6 +5,8 @@ window.config = {
modes: [], modes: [],
showStudyList: true, showStudyList: true,
maxNumberOfWebWorkers: 3, maxNumberOfWebWorkers: 3,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
// filterQueryParam: false, // filterQueryParam: false,
dataSources: [ dataSources: [
{ {
+2
View File
@@ -4,6 +4,8 @@ window.config = {
extensions: [], extensions: [],
modes: [], modes: [],
showStudyList: true, showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
// filterQueryParam: false, // filterQueryParam: false,
dataSources: [ dataSources: [
{ {
@@ -1,6 +1,8 @@
window.config = { window.config = {
routerBasename: '/', routerBasename: '/',
showStudyList: true, showStudyList: true,
// below flag is for performance reasons, but it might not work for all servers
omitQuotationForMultipartRequest: true,
servers: { servers: {
dicomWeb: [ dicomWeb: [
{ {