From 3651917e84ede357fcc2a26b08b2890d8e34b4a1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 24 Apr 2019 17:37:27 -0600 Subject: [PATCH] Update ExportSettings --- app/Http/Controllers/Settings/ExportSettings.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Settings/ExportSettings.php b/app/Http/Controllers/Settings/ExportSettings.php index 57349863a..e82bd2bf5 100644 --- a/app/Http/Controllers/Settings/ExportSettings.php +++ b/app/Http/Controllers/Settings/ExportSettings.php @@ -34,7 +34,9 @@ trait ExportSettings return response()->streamDownload(function () use ($data) { echo json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE); - }, 'account.json'); + }, 'account.json', [ + 'Content-Type' => 'application/json' + ]); } public function exportFollowing() @@ -46,7 +48,9 @@ trait ExportSettings }); return response()->streamDownload(function () use($data) { echo $data; - }, 'following.json'); + }, 'following.json', [ + 'Content-Type' => 'application/json' + ]); } public function exportFollowers() @@ -58,7 +62,9 @@ trait ExportSettings }); return response()->streamDownload(function () use($data) { echo $data; - }, 'followers.json'); + }, 'followers.json', [ + 'Content-Type' => 'application/json' + ]); } public function exportMuteBlockList() @@ -78,7 +84,9 @@ trait ExportSettings }); return response()->streamDownload(function () use($data) { echo $data; - }, 'muted-and-blocked-accounts.json'); + }, 'muted-and-blocked-accounts.json', [ + 'Content-Type' => 'application/json' + ]); } } \ No newline at end of file