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 88febcf..2383d6b 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>
 %