Browse Source

get server name from config.h

release0.1.5
Georg Hopp 12 years ago
parent
commit
cb5c42f7bc
  1. 4
      src/http/worker/add_common_header.c

4
src/http/worker/add_common_header.c

@ -33,6 +33,8 @@
#include "utils/memory.h" #include "utils/memory.h"
#include "utils/http.h" #include "utils/http.h"
#include "config.h"
void void
httpWorkerAddCommonHeader(HttpWorker this) httpWorkerAddCommonHeader(HttpWorker this)
@ -50,7 +52,7 @@ httpWorkerAddCommonHeader(HttpWorker this)
} }
hashAdd(this->current_response->header, hashAdd(this->current_response->header,
new(HttpHeader, CSTRA("Server"), CSTRA("testserver")));
new(HttpHeader, CSTRA("Server"), CSTRA(PACKAGE_STRING)));
switch(((HttpResponse)this->current_response)->status) { switch(((HttpResponse)this->current_response)->status) {
case 304: case 304:

Loading…
Cancel
Save