From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E7CF71F463 for ; Wed, 1 Jan 2020 10:38:59 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/6] wwwstatic: support directory listings Date: Wed, 1 Jan 2020 10:38:53 +0000 Message-Id: <20200101103859.15401-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Now it'll be possible to replicate the timeless web design of https://public-inbox.org/ with our own PSGI code! I imagine per-inbox docroots might be useful for serving git bundles, tarball releases, bundles, and maybe altid snapshots, too. Eric Wong (6): wwwstatic: implement Last-Modified and If-Modified-Since www: move more logic into path_info_raw wwwstatic: move r(...) functions here wwwstatic: do not open() files for HEAD requests wwwstatic: avoid TOCTTOU for FIFO check wwwstatic: add directory listing + index.html support MANIFEST | 1 + lib/PublicInbox/Cgit.pm | 9 +- lib/PublicInbox/GitHTTPBackend.pm | 19 +-- lib/PublicInbox/WWW.pm | 23 +-- lib/PublicInbox/WwwHighlight.pm | 9 +- lib/PublicInbox/WwwStatic.pm | 256 ++++++++++++++++++++++++++++-- t/www_static.t | 96 +++++++++++ xt/git-http-backend.t | 20 +++ 8 files changed, 368 insertions(+), 65 deletions(-) create mode 100644 t/www_static.t