Skip to content

Commit 007fc62

Browse files
committed
feat(transcode): add transfer-syntax-uid to multipart items
1 parent 210d570 commit 007fc62

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/backend/dimse/wado.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,12 @@ impl<'a> DicomMultipartStream<'a> {
311311
let mut buffer = Vec::new();
312312

313313
writeln!(buffer, "--boundary\r")?;
314-
writeln!(buffer, "Content-Type: {}\r", "application/dicom")?;
314+
writeln!(
315+
buffer,
316+
"Content-Type: {}; transfer-syntax=\"{}\"\r",
317+
"application/dicom",
318+
file.meta().transfer_syntax
319+
)?;
315320
writeln!(buffer, "Content-Length: {}\r", file_length)?;
316321
writeln!(buffer, "\r")?;
317322
buffer.append(&mut dcm);

0 commit comments

Comments
 (0)