chiark / gitweb /
mason/dhandler: Announce source code through `X-AGPL-Source' HTTP header.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 12 May 2022 10:52:07 +0000 (11:52 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 12 May 2022 10:52:07 +0000 (11:52 +0100)
mason/dhandler

index 88febcf39e7cf6b0729414842028d61d0b26b450..2383d6b3af486f5e5d3809491482cd81b719eaa7 100755 (executable)
@@ -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);
 </%init>
 %