]> Sergey Matveev's repositories - public-inbox.git/commit
viewvcs: flesh out some functionality and test
authorEric Wong <e@80x24.org>
Wed, 18 Dec 2019 03:36:41 +0000 (03:36 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Dec 2019 23:26:29 +0000 (23:26 +0000)
commit77632ad87adfecfa2aa9099d44dcb42ae9a2a208
treef638713cc2323ebc0d1c24695fafeeca9c5fc213
parent9342aad429aa437b743c75bd18e06e3df25a3b6a
viewvcs: flesh out some functionality and test

Expose MAX_SIZE via "our" will make it possible
to use in tests, and configure, later.

Additionally, returning HTTP 500 code for big files is not an
Internal Server Error, just a memory limit...  Some browsers
won't show our HTML response with the link to the raw file in
case of errors, either, so we'll return 200 to ensure users can
use the link to access the raw blob.

Finally, throw in some tests to the existing solver_git testcase,
since that was incomplete and was pointlessly loading Plack
modules without testing PSGI.
lib/PublicInbox/ViewVCS.pm
t/solver_git.t