From: Fredrik Tolf Date: Wed, 26 Dec 2012 02:24:57 +0000 (+0100) Subject: htparser: Be more tolerant to broken clients. X-Git-Tag: 0.12~15^2~2 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=2dbb9937cfe0d4f4a059181621c52d0fbd0c7eb1 htparser: Be more tolerant to broken clients. --- diff --git a/src/htparser.c b/src/htparser.c index c1903b4..5dfed8b 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -319,7 +319,8 @@ void serve(FILE *in, struct conn *conn) if(recvchunks(in, out)) break; } else { - break; + /* Ignore rather than abort, to be kinder to broken clients. */ + headrmheader(req, "content-type"); } } if(fflush(out))