diff options
-rw-r--r-- | src/HttpServer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpServer.cc b/src/HttpServer.cc index ef7e5bc..543b468 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -6,6 +6,7 @@ #include "BStream.h" static const ev_tstamp s_httpTimeout = 15; +#define DAEMON_NAME "Balau/1.0" namespace Balau { @@ -96,6 +97,7 @@ void Balau::HttpWorker::send400(Events::BaseEvent * evt) { "HTTP/1.0 400 Bad Request\r\n" "Content-Type: text/html; charset=UTF-8\r\n" "Connection: close\r\n" +"Server: " DAEMON_NAME "\r\n" "\r\n" "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" |