Fix 500 error page.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 4 Oct 2011 09:11:50 +0000 (09:11 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 4 Oct 2011 09:11:50 +0000 (09:11 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5139 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/hw/hw_http.c
boards/sam3x-ek/hw/hw_http.c

index 3e9eb90e8c91b0ea7cb13d05661f78aaeed7e7af..d195d05db416adcf4eeaa7be1b6910b159d48704 100644 (file)
@@ -58,8 +58,8 @@ const size_t http_sd_not_present_len = sizeof(http_sd_not_present);
 const char http_server_error[] = " \
 <!DOCTYPE html PUBLIC \"-//IETF//DTD HTML 2.0//EN\"> \
 <html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> \
-<title>404 Not Found</title></head><body><img src=\"bertos_logo_jpg\"><h1>500 Internal Server error</h1>\
+<title>500 Internal Server error</title></head><body><img src=\"bertos_logo_jpg\"><h1>500 Internal Server error</h1>\
 <p>The internal server error was occur while processing the requested page.</p><hr>\
 <address>BeRTOS simple HTTP server</address></body></html>";
 
-const size_t http_server_error_len = sizeof(http_server_error_len);
+const size_t http_server_error_len = sizeof(http_server_error);
index 3e9eb90e8c91b0ea7cb13d05661f78aaeed7e7af..d195d05db416adcf4eeaa7be1b6910b159d48704 100644 (file)
@@ -58,8 +58,8 @@ const size_t http_sd_not_present_len = sizeof(http_sd_not_present);
 const char http_server_error[] = " \
 <!DOCTYPE html PUBLIC \"-//IETF//DTD HTML 2.0//EN\"> \
 <html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> \
-<title>404 Not Found</title></head><body><img src=\"bertos_logo_jpg\"><h1>500 Internal Server error</h1>\
+<title>500 Internal Server error</title></head><body><img src=\"bertos_logo_jpg\"><h1>500 Internal Server error</h1>\
 <p>The internal server error was occur while processing the requested page.</p><hr>\
 <address>BeRTOS simple HTTP server</address></body></html>";
 
-const size_t http_server_error_len = sizeof(http_server_error_len);
+const size_t http_server_error_len = sizeof(http_server_error);