chiark
/
gitweb
/
~mdw
/
tgal
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a38a867
)
mason/dhandler: Announce source code through `X-AGPL-Source' HTTP header.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 12 May 2022 10:52:07 +0000
(11:52 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 12 May 2022 10:52:07 +0000
(11:52 +0100)
mason/dhandler
patch
|
blob
|
blame
|
history
diff --git
a/mason/dhandler
b/mason/dhandler
index 88febcf39e7cf6b0729414842028d61d0b26b450..2383d6b3af486f5e5d3809491482cd81b719eaa7 100755
(executable)
--- 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"; }
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>
%
$m->comp($comp, path => $path);
</%init>
%