Replaced '404.html' with 'notfound.html' as '404.html' is no valid filename for the Apple2 disk operating system ProDOS 8.

This commit is contained in:
oliverschmidt 2008-02-21 09:25:54 +00:00
parent f577b17ab3
commit f5e7da082c

View file

@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
* $Id: httpd-cfs.c,v 1.9 2007/12/09 23:35:03 oliverschmidt Exp $
* $Id: httpd-cfs.c,v 1.10 2008/02/21 09:25:54 oliverschmidt Exp $
*/
#include <string.h>
@ -117,11 +117,11 @@ PT_THREAD(handle_output(struct httpd_state *s))
s->fd = cfs_open(s->filename, CFS_READ);
petsciiconv_toascii(s->filename, sizeof(s->filename));
if(s->fd < 0) {
s->fd = cfs_open("404.html", CFS_READ);
s->fd = cfs_open("notfound.html", CFS_READ);
if(s->fd < 0) {
uip_abort();
memb_free(&conns, s);
webserver_log_file(&uip_conn->ripaddr, "reset (no 404.html)");
webserver_log_file(&uip_conn->ripaddr, "reset (no notfound.html)");
PT_EXIT(&s->outputpt);
}
PT_WAIT_THREAD(&s->outputpt,