Atom feeds: remove the wrong content-type for <link> - stagit-gopher - A git gopher frontend. (mirror)
 (HTM) git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0bfdcd098140d52bd553364222df7ecf14621f70
 (DIR) parent 8fd70151ae9c4015c33c9947b79b2072b021e310
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 13 Mar 2021 18:13:18 +0100
       
       Atom feeds: remove the wrong content-type for <link>
       
       The type is incorrectly set to "text/html". The attribute is optional as
       described in the Atom standard. It's not entirely clear what the correct type
       for gopher would be either, so remove it.
       
       References:
       https://tools.ietf.org/html/rfc4287
       Section 4.2.7. The "atom:link" Element and section 4.2.7.3. The "type" Attribute.
       
       Diffstat:
         M stagit-gopher.c                     |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/stagit-gopher.c b/stagit-gopher.c
       @@ -914,7 +914,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
                        xmlencode(fp, ci->summary, strlen(ci->summary));
                        fputs("</title>\n", fp);
                }
       -        fprintf(fp, "<link rel=\"alternate\" type=\"text/html\" href=\"%scommit/%s.gph\" />\n",
       +        fprintf(fp, "<link rel=\"alternate\" href=\"%scommit/%s.gph\" />\n",
                        baseurl, ci->oid);
        
                if (ci->author) {