stagit-gopher

[fork] gopher git frontend
Log | Files | Refs | README | LICENSE

commit 0bfdcd098140d52bd553364222df7ecf14621f70
parent 8fd70151ae9c4015c33c9947b79b2072b021e310
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:
Mstagit-gopher.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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) {