Make sure not to dereference the wrong UrlState proto union member when

switching from one protocol to another in a single request (e.g.
redirecting from HTTP to FTP as in test 1055) by resetting
state.expect100header before every request.
This commit is contained in:
Dan Fandrich 2008-09-24 01:08:01 +00:00
parent 3800be3898
commit 515893595d
2 changed files with 8 additions and 1 deletions

View file

@ -4682,6 +4682,7 @@ static CURLcode do_init(struct connectdata *conn)
conn->bits.done = FALSE; /* Curl_done() is not called yet */
conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to use */
data->state.expect100header = FALSE;
/* NB: the content encoding software depends on this initialization */
Curl_easy_initHandleData(data);