aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-10-23 13:48:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-10-23 13:48:37 +0000
commitb5a74715cfb022655cf477043ed70f006eda0edc (patch)
treebac442cf6eedce379ffcc05c388bc9c3ad1628b8 /lib/urldata.h
parent13ee2901f40401fa93532b84aec9a2d770ee07ad (diff)
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
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h7
1 files changed, 6 insertions, 1 deletions
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 */