From d40078d163036fbc2207bf2f5a9fbf7eeaa44fc1 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 19 Apr 2015 17:32:44 +0200 Subject: HTTP: Error message is sent as the payload as well. This shows the error message in the browsers. Before, the browsers would display just a blank page. --- src/HTTPServer/HTTPConnection.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/HTTPServer/HTTPConnection.h') diff --git a/src/HTTPServer/HTTPConnection.h b/src/HTTPServer/HTTPConnection.h index 8ecc4a4d4..e1ebeb9ee 100644 --- a/src/HTTPServer/HTTPConnection.h +++ b/src/HTTPServer/HTTPConnection.h @@ -41,7 +41,8 @@ public: cHTTPConnection(cHTTPServer & a_HTTPServer); virtual ~cHTTPConnection(); - /** Sends HTTP status code together with a_Reason (used for HTTP errors) */ + /** Sends HTTP status code together with a_Reason (used for HTTP errors). + Sends the a_Reason as the body as well, so that browsers display it. */ void SendStatusAndReason(int a_StatusCode, const AString & a_Reason); /** Sends the "401 unauthorized" reply together with instructions on authorizing, using the specified realm */ -- cgit v1.2.3