chiark
/
gitweb
/
~mdw
/
tgal
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mason/dhandler: Announce source code through `X-AGPL-Source' HTTP header.
[tgal]
/
mason
/
dhandler
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"; }
+ $r->header_out("X-AGPL-Source" => $SRCURL);
$m->comp($comp, path => $path);
</%init>
%