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 63e44d362d3cea2c3de3a46625c23961c2738566..82e8923ec952bbf598557138433d41d83d862b11 100644 (file)
@@ -27,6 +27,7 @@
        Odin::cgi_who $r;
        Odin::fetch_cookies $r;
        $r->content_type("text/html; charset=utf8");
        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>
 %#
        $m->call_next;
 </%perl>
 %#