diff --git a/VinylDownload.class.php b/VinylDownload.class.php
index 3698292..14ff574 100644
--- a/VinylDownload.class.php
+++ b/VinylDownload.class.php
@@ -6,8 +6,8 @@ class VinylDownload {
public $database, $file, $code;
public function __construct() {
- @set_time_limit(0);
- ini_set('memory_limit', '512M');
+// @set_time_limit(0);
+// ini_set('memory_limit', '512M');
}
private function db_connect(){
@@ -61,15 +61,16 @@ class VinylDownload {
';
@@ -85,11 +86,11 @@ class VinylDownload {
switch ($format) {
case 'mp3':
$file = $this->mp3_file;
- $filename = 'Rainer_von_Vielen-Überall_Chaos_2017-MP3.zip';
+ $filename = "Rainer_von_Vielen-Überall_Chaos_2017-MP3.zip";
break;
case 'wav':
$file = $this->wav_file;
- $filename = 'Rainer_von_Vielen-Überall_Chaos_2017-WAV.zip';
+ $filename = "Rainer_von_Vielen-Überall_Chaos_2017-WAV.zip";
break;
}
@@ -107,10 +108,8 @@ class VinylDownload {
ob_start();
- $mm_type='application/zip';
-
- header("Content-Type: ".$mm_type);
- header('Content-Disposition: attachment; filename="'.$filename.'"');
+ header("Content-Type: application/octet-stream");
+ header("Content-Disposition: attachment; filename=".$filename."");
header("Content-Description: File Transfer");
header("Content-Length: " .(string)(filesize($file)) );
header("Cache-Control: public, must-revalidate");