title: forcing download of tar.xz results in corrupt file in php
body: <p>IF i download filename.tra.xz it courrupted.</p>
  
  <pre><code>$newfile=$row['orginal_filename']; //download file name
  $download_file='Attachment/'.$row['path'];
  header('Content-type: application/x-gzip');
  //header("Content-Type: application/forcedownload");
  header("Content-Length: " . filesize($download_file));
  header('Content-Disposition: attachment; filename="' . $newfile . '"');
  readfile($download_file);
  exit();
  </code></pre>