X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fhtparser.c;h=5dfed8bc135f4daadbae4a5e9e257a76c1cd283a;hp=c1903b44a349157e87d1db806fea7e11fc7a9485;hb=2dbb9937cfe0d4f4a059181621c52d0fbd0c7eb1;hpb=8d19a9ecff0be0cd79c161096ead60f60d6b50e2 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))