From 2dbb9937cfe0d4f4a059181621c52d0fbd0c7eb1 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 26 Dec 2012 03:24:57 +0100 Subject: [PATCH] htparser: Be more tolerant to broken clients. --- src/htparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.11.0