From 1e8baa56aa0bfa1efeae46153d4688ec67d71dfc Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 9 Feb 2008 18:32:33 +0100 Subject: [PATCH] Packages::Dispatcher: Don't issue bogus 406 errors for index This hack really, really needs to be replaced with something more robust. Anyway... --- lib/Packages/Dispatcher.pm | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.39.2