From bb7a7e2a02148367fe2ebaaa548b8185bb9d4ac8 Mon Sep 17 00:00:00 2001 From: Joe Boccanfuso Date: Tue, 27 Jun 2023 10:59:22 -0400 Subject: [PATCH] fix(DICOM Upload):use correct Accept header for upload --- .../src/components/DicomUpload/DicomUploadProgressItem.tsx | 1 - extensions/default/src/DicomWebDataSource/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx b/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx index d07eee68f90..260588c0214 100644 --- a/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx +++ b/extensions/cornerstone/src/components/DicomUpload/DicomUploadProgressItem.tsx @@ -27,7 +27,6 @@ const DicomUploadProgressItem = memo( const [failedReason, setFailedReason] = useState(''); const [status, setStatus] = useState(dicomFileUploader.getStatus()); - console.info(`${dicomFileUploader.getFileId()}`); const isComplete = useCallback(() => { return ( status === UploadStatus.Failed || diff --git a/extensions/default/src/DicomWebDataSource/index.js b/extensions/default/src/DicomWebDataSource/index.js index cc4fe162e0e..34c8fc196b0 100644 --- a/extensions/default/src/DicomWebDataSource/index.js +++ b/extensions/default/src/DicomWebDataSource/index.js @@ -245,7 +245,7 @@ function createDicomWebApi(dicomWebConfig, userAuthenticationService) { store: { dicom: async (dataset, request) => { - wadoDicomWebClient.headers = generateWadoHeader(); + wadoDicomWebClient.headers = getAuthrorizationHeader(); if (dataset instanceof ArrayBuffer) { const options = { datasets: [dataset],