X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=handler.go;h=81bd2aa1f399101d5a10ef06619ea80cd845c9f5;hb=e05f6f8830b01d52cc21cd5f97cef6616a5334b9;hp=44c8a1fb40886d7aaf731ed7aeb062280f1a2fbf;hpb=6720be1b80880c7b58a782ebef48956d050dbbfd;p=godlighty.git diff --git a/handler.go b/handler.go index 44c8a1f..81bd2aa 100644 --- a/handler.go +++ b/handler.go @@ -273,6 +273,9 @@ IndexLookuped: for name, digest := range forHTTP.Hashes { w.Header().Add("Digest", name+"="+base64.StdEncoding.EncodeToString(digest)) } + for _, u := range forHTTP.Torrents { + w.Header().Add("Link", "<"+u+`>; rel=describedby; type="application/x-bittorrent"`) + } } SkipMeta4: