Skip to content

Commit e61db5d

Browse files
committed
feat(transcode): trim any trailing null in the transfer_syntax
1 parent 549b61b commit e61db5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/dimse/wado.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl<'a> DicomMultipartStream<'a> {
312312
buffer,
313313
"Content-Type: {}; transfer-syntax=\"{}\"\r",
314314
"application/dicom",
315-
file.meta().transfer_syntax
315+
file.meta().transfer_syntax.trim_end_matches('\0')
316316
)?;
317317
writeln!(buffer, "Content-Length: {}\r", file_length)?;
318318
writeln!(buffer, "\r")?;

0 commit comments

Comments
 (0)