From 2c6fa9337154b1a70325066f1c87a163e3dadfa1 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 21 Aug 2008 15:47:35 -0400 Subject: [PATCH] - Add Content-Length header while attachments downloading (#1484256) --- program/steps/mail/get.inc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc index 842c605..2265834 100644 --- a/program/steps/mail/get.inc +++ b/program/steps/mail/get.inc @@ -100,6 +100,7 @@ $OUTPUT->write(rcmail_print_body($part, array('safe' => $MESSAGE->is_safe, 'inline_html' => false))); } else { + header(sprintf('Content-Length: %d', $part->size)); header(sprintf('Content-Disposition: %s; filename="%s";', $_GET['_download'] ? 'attachment' : 'inline', $part->filename ? abbreviate_string($part->filename, 55) : "roundcube.$ctype_secondary")); -- Gitblit v1.9.1