From c939aa7c433bee96fb07b2a740f2234be2dd76c5 Mon Sep 17 00:00:00 2001 From: HannoGao Date: Wed, 29 Jan 2020 10:35:53 +0100 Subject: [PATCH] DicomSTOWR has depending on the application the string type="application/dicom": Without the quote sign, the typeLC.contains() is not matched. I don't know how it is handled in other DICOMWeb applications (or tools), so I removed the "type=", so both conditions should match. --- source/java/org/rsna/server/HttpRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/java/org/rsna/server/HttpRequest.java b/source/java/org/rsna/server/HttpRequest.java index c1c7ad2..ca07711 100644 --- a/source/java/org/rsna/server/HttpRequest.java +++ b/source/java/org/rsna/server/HttpRequest.java @@ -521,7 +521,7 @@ public LinkedList getParts(File dir, int maxPostSize) throws IOExc String type = getContentType(); String typeLC = type.toLowerCase(); if (typeLC.contains("multipart/form-data") - || (typeLC.contains("multipart/related") && typeLC.contains("type=application/dicom"))) { + || (typeLC.contains("multipart/related") && typeLC.contains("application/dicom"))) { // Check the content length int length = getContentLength();