chiark / gitweb /
mason/common/autohandler: Include `X-AGPL-Source' header.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 7 Jul 2017 23:45:08 +0000 (00:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 7 Jul 2017 23:45:08 +0000 (00:45 +0100)
For consistency with the `ip' service, which doesn't have anywhere else
to put the link.

mason/common/autohandler

index 63e44d3..82e8923 100644 (file)
@@ -27,6 +27,7 @@
        Odin::cgi_who $r;
        Odin::fetch_cookies $r;
        $r->content_type("text/html; charset=utf8");
+       $r->header_out("X-AGPL-Source" => $Odin::SRCURL);
        $m->call_next;
 </%perl>
 %#