Adding x-sendfile header see #6853

1.9.x
Julio Montoya 11 years ago
parent cc1ce2551f
commit 02b123f936
  1. 5
      main/inc/lib/document.lib.php

@ -320,6 +320,11 @@ class DocumentManager
if ($forced) {
// Force the browser to save the file instead of opening it
global $_configuration;
if (!empty($_configuration['enable_x_sendfile_headers'])) {
header("X-Sendfile: $filename");
}
header('Content-type: application/octet-stream');
header('Content-length: ' . $len);
if (preg_match("/MSIE 5.5/", $_SERVER['HTTP_USER_AGENT'])) {

Loading…
Cancel
Save