Commit Diff


commit - b9de0a740a8a4a0c10be051e1f948c6eba7d9c4c
commit + df5279ca412c6f286f39312c3a2b40295a609ee8
blob - df38bfa2eeb278cf959185a4c4e410f221b51084
blob + e3cd0510db7ca4b5b311006611edda7c8ecb3c15
--- proxy.c
+++ proxy.c
@@ -316,6 +316,10 @@ gemtext_translate_line(struct client *clt, char *line)
 			return (-1);
 		return (0);
 	}
+
+	/* Not following strictly the gemini specification... */
+	if (*line == '\0')
+		return (0);
 
 	/* paragraph */
 	if (clt_puts(clt, "<p>") == -1 ||