From b1428e3102b422e6ee68da3540b43409aae257e2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 16 Nov 2011 08:30:38 -0800 Subject: Adding a simple 'daemon name' for our output. --- src/HttpServer.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/HttpServer.cc') 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" "\n" -- cgit v1.2.3