diff options
author | Pixel <pixel@nobis-crew.org> | 2011-11-16 08:30:38 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-11-16 08:30:38 -0800 |
commit | b1428e3102b422e6ee68da3540b43409aae257e2 (patch) | |
tree | 048c82e1f087cb2cbedf739af0089fc222452623 /src | |
parent | 4908625aa005082cbbc43a63dc9d2c508eaaccf2 (diff) |
Adding a simple 'daemon name' for our output.
Diffstat (limited to 'src')
-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" |