aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-08-08 21:12:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-08-08 21:12:49 +0000
commita4ebf5b507490ceac7d741c4462ad162629a4bae (patch)
tree83c14d2d9e1160754d9bc5828e3cfedcb19cae74 /lib/urldata.h
parentc41076958835c3de6abbfea4b68a9a0b045e9b21 (diff)
Fixed a flaw in the "Expect: 100-continue" treatment. If you did two POSTs
on a persistent connection and allowed the first to use that header, you could not disable it for the second request.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r--lib/urldata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index c804105b6..f1d14a6c0 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -940,6 +940,8 @@ struct UrlState {
/* set after initial USER failure, to prevent an authentication loop */
bool ftp_trying_alternative;
+ bool expect100header; /* TRUE if we added Expect: 100-continue */
+
#ifndef WIN32
/* do FTP line-end conversions on most platforms */
#define CURL_DO_LINEEND_CONV
@@ -1135,7 +1137,6 @@ struct UserDefined {
bool krb4; /* kerberos4 connection requested */
bool reuse_forbid; /* forbidden to be reused, close after use */
bool reuse_fresh; /* do not re-use an existing connection */
- bool expect100header; /* TRUE if we added Expect: 100-continue */
bool ftp_use_epsv; /* if EPSV is to be attempted or not */
bool ftp_use_eprt; /* if EPRT is to be attempted or not */
curl_ftpssl ftp_ssl; /* if AUTH TLS is to be attempted etc */