X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fhtparser.c;h=c9cc97c9d3f3c1e658a280757b468fc0d23df8b3;hb=cefb0f7aedb9e3f0a2c04e7258ab07a243638e75;hp=4086f7926eacc01fc17c15c5d4c3cf757ef751f0;hpb=64a8cd9feaab29ed99cadd9eed943a6fc7709fa4;p=ashd.git diff --git a/src/htparser.c b/src/htparser.c index 4086f79..c9cc97c 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -274,7 +274,7 @@ void serve(FILE *in, struct conn *conn) if(!getheader(resp, "server")) headappheader(resp, "Server", sprintf3("ashd/%s", VERSION)); - if(!strcmp(req->ver, "HTTP/1.0")) { + if(!strcasecmp(req->ver, "HTTP/1.0")) { if(!strcasecmp(req->method, "head")) { keep = http10keep(req, resp); writeresp(in, resp); @@ -295,7 +295,7 @@ void serve(FILE *in, struct conn *conn) } if(!keep) break; - } else if(!strcmp(req->ver, "HTTP/1.1")) { + } else if(!strcasecmp(req->ver, "HTTP/1.1")) { if(!strcasecmp(req->method, "head")) { writeresp(in, resp); fprintf(in, "\r\n");