From: Frank Lichtenheld Date: Sat, 9 Feb 2008 17:32:33 +0000 (+0100) Subject: Packages::Dispatcher: Don't issue bogus 406 errors for index X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=1e8baa56aa0bfa1efeae46153d4688ec67d71dfc;p=deb%2Fpackages.git Packages::Dispatcher: Don't issue bogus 406 errors for index This hack really, really needs to be replaced with something more robust. Anyway... --- diff --git a/lib/Packages/Dispatcher.pm b/lib/Packages/Dispatcher.pm index 9f844f2..75264a0 100755 --- a/lib/Packages/Dispatcher.pm +++ b/lib/Packages/Dispatcher.pm @@ -315,6 +315,7 @@ sub do_dispatch { #FIXME: ugly hack unless (($what_to_do eq 'allpackages' and $opts{format} =~ /^(html|txt\.gz)/) + || ($what_to_do eq 'index' and $opts{format} eq 'html') || -e "$TEMPLATEDIR/$opts{format}/${what_to_do}.tmpl") { fatal_error( $cat->g("requested format not available for this document"), "406 requested format not available");