From b2d7d0187bdd540148c80166942616c7821fd877 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Mon, 24 Mar 2014 15:24:57 -0400 Subject: [PATCH] Allow arbitrary Content-Disposition in REST uploads Fixes issues #19770 --- lib/RT/Interface/REST.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RT/Interface/REST.pm b/lib/RT/Interface/REST.pm index 17fe446694e..06d7f83d2dc 100644 --- a/lib/RT/Interface/REST.pm +++ b/lib/RT/Interface/REST.pm @@ -328,7 +328,7 @@ sub process_attachments { Path => $tmp_fn, Type => $info->{'Content-Type'} || guess_media_type($tmp_fn), Filename => $file, - Disposition => "attachment", + Disposition => $info->{'Content-Disposition'} || "attachment", ); $new_entity->bodyhandle->{'_dirty_hack_to_save_a_ref_tmp_fh'} = $tmp_fh; $i++;