CC-2891: Unicode error with metadata that contains unicode strings

-fixed
This commit is contained in:
martin 2011-09-28 16:04:40 -04:00
parent 6672c712ca
commit 4e105e6151
2 changed files with 12 additions and 6 deletions

View file

@ -112,6 +112,7 @@ class ApiController extends Zend_Controller_Action
$file_base_name = substr($file_base_name, 1);
header('Content-Disposition: attachment; filename="'.$file_base_name.'"');
}
$logger->info("Sending $filepath");
header("Content-Length: " . filesize($filepath));
// !! binary mode !!