Skip to content

Commit

Permalink
Allow arbitrary Content-Disposition in REST uploads
Browse files Browse the repository at this point in the history
Fixes issues #19770
  • Loading branch information
alexmv committed Mar 24, 2014
1 parent 94e22e0 commit b2d7d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/RT/Interface/REST.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit b2d7d01

Please sign in to comment.