Skip to content

Commit c939aa7

Browse files
committed
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.
1 parent dbc8316 commit c939aa7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/java/org/rsna/server/HttpRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ public LinkedList<UploadedFile> getParts(File dir, int maxPostSize) throws IOExc
521521
String type = getContentType();
522522
String typeLC = type.toLowerCase();
523523
if (typeLC.contains("multipart/form-data")
524-
|| (typeLC.contains("multipart/related") && typeLC.contains("type=application/dicom"))) {
524+
|| (typeLC.contains("multipart/related") && typeLC.contains("application/dicom"))) {
525525

526526
// Check the content length
527527
int length = getContentLength();

0 commit comments

Comments
 (0)