From 81036ee75271e712e0b04dca53423602bf19b8cb Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 29 May 2018 14:38:29 +0200 Subject: [PATCH] Remove duplicated Content-disposition header --- Changelog | 1 + app/Http/Controllers/GetNzbController.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog b/Changelog index d8f973dce..427347a56 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-05-29 DariusIII + * Fix: Remove duplicated Content-disposition header * Fix: Left commented out code for testing * Fix: Fix sent headers when downloading an nzb * Fix: Fix group browsing list page diff --git a/app/Http/Controllers/GetNzbController.php b/app/Http/Controllers/GetNzbController.php index 3b5ba8ca6..73ae7ac11 100644 --- a/app/Http/Controllers/GetNzbController.php +++ b/app/Http/Controllers/GetNzbController.php @@ -127,7 +127,6 @@ class GetNzbController extends BasePageController $cleanName = str_replace([',', ' ', '/'], '_', $relData['searchname']); $headers = [ - 'Content-Disposition:' => 'attachment; filename='.$cleanName.'.nzb', 'Content-Type:' => 'application/x-nzb', 'Expires:' => date('r', Carbon::now()->addDays(365)->timestamp), 'X-DNZB-Failure:' => $this->serverurl.'failed'.'?guid='.$request->input('id').'&userid='.$uid.'&rsstoken='.$rssToken,