1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

date comment changes + post stuff

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@158 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich 2009-03-27 11:25:10 +00:00
parent 68a71ccc40
commit 95e8c7998f
4 changed files with 13 additions and 14 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Cameron Rich
* Copyright (c) Cameron Rich
*
* All rights reserved.
*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Cameron Rich
* Copyright (c) Cameron Rich
*
* All rights reserved.
*

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007-2008, Cameron Rich
* Copyright (c) Cameron Rich
*
* All rights reserved.
*
@ -1181,17 +1181,16 @@ static void send_error(struct connstruct *cn, int err)
break;
}
snprintf(buf, MAXREQUESTLENGTH, "HTTP/1.1 %d %s\n"
"Content-Type: text/html\n"
"Cache-Control: no-cache,no-store\n"
"Connection: close\n\n"
"<html>\n<head>\n<title>%d %s</title></head>\n"
"<body><h1>%d %s</h1>\n</body></html>\n",
err, title, err, title, err, text);
snprintf(buf, sizeof(buf), HTTP_VERSION" 200 OK\n"
"Content-Type: text/html\n\n"
"<html><body>\n<title>%s</title>\n"
"<h1>Error %d - %s</h1>\n</body></html>\n",
title, err, text);
special_write(cn, buf, strlen(buf));
#ifdef CONFIG_HTTP_VERBOSE
printf("axhttpd: http error: %s [%d]\n", title, err); TTY_FLUSH();
#endif
special_write(cn, buf, strlen(buf));
removeconnection(cn);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2007, Cameron Rich
* Copyright (c) Cameron Rich
*
* All rights reserved.
*