From c19844a0a3d7f7d1c7351de65605d13d422f2600 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 13 Sep 2002 12:40:36 +0000 Subject: better deal with HTTP(S) servers that respond with no headers at all, test case 306 added to verify that we do right --- lib/urldata.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index 6d3f9ce73..f4cca8fda 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -229,6 +229,8 @@ 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 + written as body */ int headerline; /* counts header lines to better track the first one */ char *hbufp; /* points at *end* of header line */ @@ -245,8 +247,6 @@ struct Curl_transfer_keeper { bool write_after_100_header; /* should we enable the write after we received a 100-continue/timeout or directly */ - - /* for content-encoding 08/28/02 jhrg */ int content_encoding; /* What content encoding. sec 3.5, RFC2616. */ #define IDENTITY 0 /* No encoding */ -- cgit v1.2.3