Add rewrite for github raw files. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit c44e3c33b1b8a3f08bad2ac33abf9728e49b58e8 DIR parent 5f9d02901321f73774f20af1942d5171e89ff049 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Tue, 9 Jun 2020 14:25:40 +0200 Add rewrite for github raw files. Diffstat: M annna-start-services | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -119,6 +119,10 @@ annna_common() { nuri="${nuri}; gopherdit: ${guri} " fi ;; + *github.com/*/blob/*) + urltitle="" + nuri="$(printf '%s' "${uri}" | sed 's/blob/raw/')" + ;; *) mimetype="$(file -b --mime-type "${tmpf}")" case "${mimetype}" in