From 751e0228258e4c9e738fdcbfd43e45cdf873a553 Mon Sep 17 00:00:00 2001 From: asterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Tue, 4 Oct 2011 09:11:50 +0000 Subject: [PATCH] Fix 500 error page. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5139 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/hw/hw_http.c | 4 ++-- boards/sam3x-ek/hw/hw_http.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bertos/hw/hw_http.c b/bertos/hw/hw_http.c index 3e9eb90e..d195d05d 100644 --- a/bertos/hw/hw_http.c +++ b/bertos/hw/hw_http.c @@ -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); diff --git a/boards/sam3x-ek/hw/hw_http.c b/boards/sam3x-ek/hw/hw_http.c index 3e9eb90e..d195d05d 100644 --- a/boards/sam3x-ek/hw/hw_http.c +++ b/boards/sam3x-ek/hw/hw_http.c @@ -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); -- 2.25.1