Add content-disposition to fix HPR/hpr_generator#321

This commit is contained in:
2025-12-23 16:40:29 +01:00
parent 76a137d94f
commit f096a02bfc

View File

@@ -101,6 +101,10 @@ if ($pos !== false) {
logextra( "Sending request to ${path}" ); 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}"); header("location:${path}");
?> ?>