diff --git a/view/xsendfile.php b/view/xsendfile.php
index 8674c7e5a..7b151716f 100644
--- a/view/xsendfile.php
+++ b/view/xsendfile.php
@@ -1,84 +1,84 @@
doNotUseXsendFile)) {
//_error_log("X-Sendfile: {$path}");
header("X-Sendfile: {$path}");
}else{
_error_log("Careful, we recomend you to use the X-Sendfile and it is disabled on AdvancedCustom plugin -> doNotUseXsendFile, you may have an error 'Allowed Memory Size Exhausted' if your video file is too big", AVideoLog::$WARNING);
}
} else {
$advancedCustom->doNotUseXsendFile = true;
}
header("Content-type: " . mime_content_type($path));
header('Content-Length: ' . filesize($path));
if (!empty($advancedCustom->doNotUseXsendFile)) {
ini_set('memory_limit', filesize($path) * 1.5);
_error_log("Your XSEND File is not enabled, it may slowdown your site, file = $path", AVideoLog::$WARNING);
//echo url_get_contents($path);
// stream the file
$fp = fopen($path, 'rb');
fpassthru($fp);
}
die();
} else {
_error_log("XSENDFILE ERROR: Not exists {$path}");
}