Introduction
Introduction Statistics Contact Development Disclaimer Help
Atom feeds: remove the wrong content-type for <link> - stagit-gopher - static g…
git clone git://git.codemadness.org/stagit-gopher
Log
Files
Refs
README
LICENSE
---
commit 0bfdcd098140d52bd553364222df7ecf14621f70
parent 8fd70151ae9c4015c33c9947b79b2072b021e310
Author: Hiltjo Posthuma <[email protected]>
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" Attribut…
Diffstat:
M stagit-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…
xmlencode(fp, ci->summary, strlen(ci->summary));
fputs("</title>\n", fp);
}
- fprintf(fp, "<link rel=\"alternate\" type=\"text/html\" href=\"%scommi…
+ fprintf(fp, "<link rel=\"alternate\" href=\"%scommit/%s.gph\" />\n",
baseurl, ci->oid);
if (ci->author) {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.