From f096a02bfcc2be1f1393bd32dafc6ba8b908435b Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Tue, 23 Dec 2025 16:40:29 +0100 Subject: [PATCH] Add content-disposition to fix https://repo.anhonesthost.net/HPR/hpr_generator/issues/321 --- hub/ccdn.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hub/ccdn.php b/hub/ccdn.php index db1a2fd..724a1f8 100644 --- a/hub/ccdn.php +++ b/hub/ccdn.php @@ -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}"); ?>