Remove Content-Type header from index.live.cgi

cPanel's live engine provides the HTTP headers and page chrome
(sidebar, topbar). CGI should not output its own Content-Type.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
shuki
2026-03-05 02:04:00 +02:00
parent c672c9d8ee
commit 97eb3ff2ed

View File

@@ -19,7 +19,6 @@ use Cpanel::AdminBin::Call ();
use GnizaCPanel::UI; use GnizaCPanel::UI;
my $cpanel = Cpanel::LiveAPI->new(); my $cpanel = Cpanel::LiveAPI->new();
print "Content-Type: text/html\r\n\r\n";
# Get allowed remotes via AdminBin # Get allowed remotes via AdminBin
my $remotes_raw = eval { Cpanel::AdminBin::Call::call('Gniza', 'Restore', 'LIST_ALLOWED_REMOTES') } // ''; my $remotes_raw = eval { Cpanel::AdminBin::Call::call('Gniza', 'Restore', 'LIST_ALLOWED_REMOTES') } // '';