Packages::DoIndex: Ugly hack to fix content negotiation
authorFrank Lichtenheld <frank@lichtenheld.de>
Sun, 9 Sep 2007 14:25:35 +0000 (16:25 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sun, 9 Sep 2007 14:25:35 +0000 (16:25 +0200)
commit406e4a74469f551c3cbbb137181c1415dde050c9
tree3e381d68bc790c1fc56cd2e061007df3f778bdfd
parent753bf85177cb88fcf77b916d00da28558a781850
Packages::DoIndex: Ugly hack to fix content negotiation

Since we don't create the static pages for ddtplangs currently,
only for polangs, but we don't discriminate between the two in
the content negotiation we might try to serve a non-existant file.

Fixing the content negoation or the static file generation will
take some time and testing. For now, work around the bug by stat'ing
the requested file in DoIndex and falling back to English in case it doesn't
exist.
lib/Packages/DoIndex.pm