From: Mark Wooding Date: Thu, 12 May 2022 10:52:07 +0000 (+0100) Subject: mason/dhandler: Announce source code through `X-AGPL-Source' HTTP header. X-Git-Url: https://git.distorted.org.uk/~mdw/tgal/commitdiff_plain/ecf3c7a83dc84a2ff6ea23e2aaf70b5d31fccd5f mason/dhandler: Announce source code through `X-AGPL-Source' HTTP header. --- diff --git a/mason/dhandler b/mason/dhandler index 88febcf..2383d6b 100755 --- a/mason/dhandler +++ b/mason/dhandler @@ -324,6 +324,7 @@ use Data::Dumper; elsif (-d $st) { $comp = ".contact"; } elsif (-f $st) { $comp = ".image"; } else { $comp = ".not-found"; } + $r->header_out("X-AGPL-Source" => $SRCURL); $m->comp($comp, path => $path); %