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:
@@ -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') } // '';
|
||||||
|
|||||||
Reference in New Issue
Block a user