X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fhtparser.c;h=e6f545a6f87567a5bb7ae4f23368b7bd6c6f6ad6;hp=766d2f5e8f29b677536671fe5138142232f1d629;hb=4e8fb5cddb8dc1620ac9d1b46cce54ad6f717716;hpb=cf91aa538e5215bc1981d11d06cb6e6c0c221c22 diff --git a/src/htparser.c b/src/htparser.c index 766d2f5..e6f545a 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))