From cb5c42f7bc0f8af5df23868efbb01e651bfd639b Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Sat, 28 Sep 2013 21:36:33 +0100 Subject: [PATCH] get server name from config.h --- src/http/worker/add_common_header.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/http/worker/add_common_header.c b/src/http/worker/add_common_header.c index 5af7dd5..f5cb04c 100644 --- a/src/http/worker/add_common_header.c +++ b/src/http/worker/add_common_header.c @@ -33,6 +33,8 @@ #include "utils/memory.h" #include "utils/http.h" +#include "config.h" + void httpWorkerAddCommonHeader(HttpWorker this) @@ -50,7 +52,7 @@ httpWorkerAddCommonHeader(HttpWorker this) } hashAdd(this->current_response->header, - new(HttpHeader, CSTRA("Server"), CSTRA("testserver"))); + new(HttpHeader, CSTRA("Server"), CSTRA(PACKAGE_STRING))); switch(((HttpResponse)this->current_response)->status) { case 304: