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. * All rights reserved.
* *

View File

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

View File

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

View File

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