Re: (Re: gitweb not friendly to firefox?) and unusable in the lynx
- From
- sf <sf@b-i-t.de>
- Date
- Mar 8, 2007, 15:31 UTC
- Message-ID
- <45F02C66.9010909@b-i-t.de>
- In-Reply-To
- <200703030357.18822.jnareb@gmail.com>
Jakub Narebski wrote: ...
> By "conservatively" it means that it uses 'application/xhtml+xml' only when > client explicitly claims that it accepts its, and it is not due to for > example */* accept globbing.
You may need something like the (not tested and line wrapped) patch below as well.
Regards
Stephan
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 27b5970..6cc5c20 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1714,7 +1714,8 @@ sub git_header_html { $content_type = 'text/html'; } print $cgi->header(-type=>$content_type, -charset => 'utf-8', - -status=> $status, -expires => $expires); + -status=> $status, -expires => $expires, + -Vary=> 'Accept'); my $mod_perl_version = $ENV{'MOD_PERL'} ? " $ENV{'MOD_PERL'}" : ''; print <<EOF; <?xml version="1.0" encoding="utf-8"?>