Dropped the use of CGI->header in gitweb.cgi.
Dan Brook [Wed, 5 Aug 2009 12:17:45 +0000 (13:17 +0100)]
Gitalist/lib/Gitalist/Controller/Root.pm
gitweb.cgi

index 2ead38b..08de960 100644 (file)
@@ -43,7 +43,6 @@ sub default :Path {
        $capture->stop();
 
        my $output = join '', $capture->read;
-       $output =~ s/\A.*?\r?\n\r?\n//s;
     $c->response->body( $output );
 }
 
index 604d2d2..3cf64d7 100755 (executable)
@@ -2930,8 +2930,7 @@ sub git_header_html {
        } else {
                $content_type = 'text/html';
        }
-       print $cgi->header(-type=>$content_type, -charset => 'utf-8',
-                          -status=> $status, -expires => $expires);
+
        my $mod_perl_version = $ENV{'MOD_PERL'} ? " $ENV{'MOD_PERL'}" : '';
        print <<EOF;
 <?xml version="1.0" encoding="utf-8"?>