Add content-disposition to fix HPR/hpr_generator#321
This commit is contained in:
@@ -101,6 +101,10 @@ if ($pos !== false) {
|
||||
|
||||
logextra( "Sending request to ${path}" );
|
||||
|
||||
// header("Content-Type: application/jpeg");
|
||||
// header("Content-Length: " . filesize($original_filename));
|
||||
// https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4537/hpr4537.mp3
|
||||
header('Content-Disposition: attachment; filename="' .$name . '"');
|
||||
header("location:${path}");
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user