diff --git a/httpd/axhttpd.c b/httpd/axhttpd.c index 35d36f64c..fb7ad3d84 100644 --- a/httpd/axhttpd.c +++ b/httpd/axhttpd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, Cameron Rich + * Copyright (c) Cameron Rich * * All rights reserved. * diff --git a/httpd/htpasswd.c b/httpd/htpasswd.c index 1a7a2311f..d1fbe32bf 100644 --- a/httpd/htpasswd.c +++ b/httpd/htpasswd.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, Cameron Rich + * Copyright (c) Cameron Rich * * All rights reserved. * diff --git a/httpd/proc.c b/httpd/proc.c index 78fc7ae28..c90fa9790 100644 --- a/httpd/proc.c +++ b/httpd/proc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007-2008, Cameron Rich + * Copyright (c) Cameron Rich * * All rights reserved. * @@ -571,8 +571,8 @@ static void proccgi(struct connstruct *cn) } #ifdef CONFIG_HTTP_VERBOSE - printf("[CGI]: %s:/%s\n", cn->is_ssl ? "https" : "http", cn->filereq); - TTY_FLUSH(); + printf("[CGI]: %s:/%s\n", cn->is_ssl ? "https" : "http", cn->filereq); + TTY_FLUSH(); #endif /* win32 cgi is a bit too painful */ @@ -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" - "\n\n%d %s\n" - "

%d %s

\n\n", - err, title, err, title, err, text); + snprintf(buf, sizeof(buf), HTTP_VERSION" 200 OK\n" + "Content-Type: text/html\n\n" + "\n%s\n" + "

Error %d - %s

\n\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); } diff --git a/httpd/tdate_parse.c b/httpd/tdate_parse.c index 813bdc578..912432384 100644 --- a/httpd/tdate_parse.c +++ b/httpd/tdate_parse.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, Cameron Rich + * Copyright (c) Cameron Rich * * All rights reserved. *