diff options
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 9bd245980..4200c3818 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -421,6 +421,10 @@ struct ConnectBits { LPRT doesn't work we disable it for the forthcoming requests */ bool netrc; /* name+password provided by netrc */ + + bool trailerHdrPresent; /* Set when Trailer: header found in HTTP response. + Required to determine whether to look for trailers + in case of Transfer-Encoding: chunking */ }; struct hostname { @@ -726,6 +730,12 @@ struct connectdata { transfer */ enum { NORMAL, SOURCE3RD, TARGET3RD } xfertype; + + /* These three are used for chunked-encoding trailer support */ + char *trailer; /* allocated buffer to store trailer in */ + int trlMax; /* allocated buffer size */ + int trlPos; /* index of where to store data */ + }; /* The end of connectdata. */ |