From 56bd8e38a8a8ad4afafb482b3fa744b8d247ee71 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 21 Aug 2008 19:47:35 +0000 Subject: - Add Content-Length header while attachments downloading (#1484256) git-svn-id: https://svn.roundcube.net/trunk@1670 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/get.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'roundcubemail/program/steps') diff --git a/roundcubemail/program/steps/mail/get.inc b/roundcubemail/program/steps/mail/get.inc index 842c60536..22658346e 100644 --- a/roundcubemail/program/steps/mail/get.inc +++ b/roundcubemail/program/steps/mail/get.inc @@ -100,6 +100,7 @@ else if ($pid = get_input_value('_part', RCUBE_INPUT_GET)) { $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")); -- cgit v1.2.3