From b5a74715cfb022655cf477043ed70f006eda0edc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 23 Oct 2002 13:48:37 +0000 Subject: bad headers can come in two kinds, we either treat everything as one big badly assumed header, or we think that parts of the buffer is a bad header and the rest is treated as a normal body part --- lib/urldata.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index 6c15b9a44..5bf4ef04b 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -229,7 +229,12 @@ struct Curl_transfer_keeper { struct timeval start; /* transfer started at this time */ struct timeval now; /* current time */ bool header; /* incoming data has HTTP header */ - bool badheader; /* the header was deemed bad and will be + enum { + HEADER_NORMAL, /* no bad header at all */ + HEADER_PARTHEADER, /* part of the chunk is a bad header, the rest is + normal data */ + HEADER_ALLBAD /* all was believed to be header */ + } badheader; /* the header was deemed bad and will be written as body */ int headerline; /* counts header lines to better track the first one */ -- cgit v1.2.3