From 351fdae70bfaac225372bb3078e6db715a5ea113 Mon Sep 17 00:00:00 2001 From: dyzulk <66510723+dyzulk@users.noreply.github.com> Date: Tue, 6 Jan 2026 16:08:33 +0700 Subject: [PATCH] feat: change script Content-Type to text/plain for browser visibility --- app/Services/OpenSslService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Services/OpenSslService.php b/app/Services/OpenSslService.php index 85dcd7a..57805b2 100644 --- a/app/Services/OpenSslService.php +++ b/app/Services/OpenSslService.php @@ -581,7 +581,7 @@ class OpenSslService $batContent = $this->generateWindowsInstaller($cert); Storage::disk('r2-public')->put($batFilename, $batContent, [ 'visibility' => 'public', - 'ContentType' => 'application/x-msdos-program', + 'ContentType' => 'text/plain', 'CacheControl' => $cacheControl ]); @@ -597,7 +597,7 @@ class OpenSslService $linuxContent = $this->generateLinuxInstaller($cert); Storage::disk('r2-public')->put($linuxFilename, $linuxContent, [ 'visibility' => 'public', - 'ContentType' => 'application/x-sh', + 'ContentType' => 'text/plain', 'CacheControl' => $cacheControl ]); @@ -657,7 +657,7 @@ class OpenSslService Storage::disk('r2-public')->put('ca/bundles/trustlab-all.sh', $shContent, [ 'visibility' => 'public', - 'ContentType' => 'application/x-sh', + 'ContentType' => 'text/plain', 'CacheControl' => $cacheControl ]); @@ -679,7 +679,7 @@ class OpenSslService Storage::disk('r2-public')->put('ca/bundles/trustlab-all.bat', $batContent, [ 'visibility' => 'public', - 'ContentType' => 'application/x-msdos-program', + 'ContentType' => 'text/plain', 'CacheControl' => $cacheControl ]);