From 9468b35fe1bfabb69ea9c75cd0f29f68255970bb Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Tue, 16 Sep 2008 09:15:46 +0000 Subject: [PATCH] Bug 448812 - "Stray "Content-type: text/html" on tinderbox doadmin.cgi" [p=cls r=reed] git-svn-id: svn://10.0.0.236/trunk@254230 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/tinderbox/doadmin.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/tinderbox/doadmin.cgi b/mozilla/webtools/tinderbox/doadmin.cgi index c028741d3b1..8142af39d6c 100755 --- a/mozilla/webtools/tinderbox/doadmin.cgi +++ b/mozilla/webtools/tinderbox/doadmin.cgi @@ -38,8 +38,6 @@ $|=1; &tb_check_password(\%form, \%cookie_jar); -print "Content-type: text/html\n\n\n"; - my $command = $form{'command'}; my $tree= $form{'tree'}; @@ -49,6 +47,8 @@ if ($command eq 'create_tree') { $tree = &require_only_one_tree($tree); } +print "Content-type: text/html\n\n\n"; + if( $command eq 'create_tree' || $command eq 'edit_tree' ){ &create_tree; } @@ -71,6 +71,8 @@ elsif( $command eq 'admin_builds' ){ exit(1); } +print "\n"; + # Recreate static pages after administrative command my %static_form = (); $static_form{'tree'} = $form{'tree'};