From c26b89f9c287d64915b94cc56fb0e4e709d235a4 Mon Sep 17 00:00:00 2001 From: schmirl Date: Fri, 13 Feb 2009 07:02:18 +0000 Subject: ignore trailing blank lines in HTTP requests --- server/connectionHTTP.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/connectionHTTP.c') diff --git a/server/connectionHTTP.c b/server/connectionHTTP.c index 3b41bf2..fc10bfc 100644 --- a/server/connectionHTTP.c +++ b/server/connectionHTTP.c @@ -1,5 +1,5 @@ /* - * $Id: connectionHTTP.c,v 1.15 2009/01/16 11:35:44 schmirl Exp $ + * $Id: connectionHTTP.c,v 1.16 2009/02/13 07:02:19 schmirl Exp $ */ #include @@ -63,6 +63,9 @@ bool cConnectionHTTP::Command(char *Cmd) Dprintf("header\n"); return true; default: + // skip additional blank lines + if (*Cmd == '\0') + return true; break; } return false; // ??? shouldn't happen -- cgit v1.2.3