X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fhtparser.c;h=33ceb4990468fc1a7c5bcb9fd1847ec2c4777659;hp=4325e975a9cb22f537439dfde0f05c3e8060bd97;hb=1c3e01675acafadd2b44d54b541a57de5b5031f1;hpb=18fb436dba91930a8d60c1d343c50b55b55a4c37 diff --git a/src/htparser.c b/src/htparser.c index 4325e97..33ceb49 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -272,6 +272,9 @@ void serve(FILE *in, struct conn *conn) if((resp = parseresp(out)) == NULL) break; replstr(&resp->ver, req->ver); + + if(!getheader(resp, "server")) + headappheader(resp, "Server", sprintf3("ashd/%s", VERSION)); if(!strcmp(req->ver, "HTTP/1.0")) { writeresp(in, resp);