summaryrefslogtreecommitdiffstats
path: root/index.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.cgi b/index.cgi
index 1bdaa5351..f617965d3 100755
--- a/index.cgi
+++ b/index.cgi
@@ -51,10 +51,12 @@ quietly_check_login('permit_anonymous');
# Main Body Execution
###############################################################################
+my $cgi = Bugzilla->cgi;
+
$vars->{'username'} = $::COOKIE{'Bugzilla_login'} || '';
# Return the appropriate HTTP response headers.
-print "Content-Type: text/html\n\n";
+print $cgi->header();
# Generate and return the UI (HTML page) from the appropriate template.
$template->process("index.html.tmpl", $vars)