Error code = 51 (not found) and redirection is now 30 following specifications Appendix https://gemini.circumlunar.space/docs/specification.html

This commit is contained in:
Solene Rapenne 2021-01-03 17:50:45 +01:00
commit b2ccab7448
2 changed files with 4 additions and 4 deletions

4
main.c
View file

@ -178,7 +178,7 @@ display_file(const char *path, const char *lang)
return;
err:
/* return an error code and no content */
status(40, "text/gemini", lang);
status(51, "text/gemini", lang);
syslog(LOG_DAEMON, "path invalid %s", path);
goto closefd;
@ -192,7 +192,7 @@ redirect:
goto err;
}
status_redirect(39, target);
status_redirect(30, target);
syslog(LOG_DAEMON, "redirection from %s to %s", path, target);
closefd: