diff --git a/src/DDSERVICES/REST/get_cdf.php b/src/DDSERVICES/REST/get_cdf.php index 428b495..bb2b88e 100755 --- a/src/DDSERVICES/REST/get_cdf.php +++ b/src/DDSERVICES/REST/get_cdf.php @@ -33,7 +33,7 @@ function error($log_msg) { global $inputFilePath, $log_path; file_put_contents($log_path, date("Y-m-d H:i:s") . " with id='" . $_GET['id'] . "': $log_msg\n", FILE_APPEND); // If the file can not be converted, return the NetCDF file. - send_file('application/x-gzip', basename($inputFilePath)); + send_file('application/x-gzip', $inputFilePath); exit; } -- libgit2 0.21.2