diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-01-11 14:00:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-11 14:00:45 +0000 |
commit | 29102befa66e009c668d6a51cc41051a273d4703 (patch) | |
tree | dca83edda366c442b09a414fa9d0dacbb711f840 /lib/multi.c | |
parent | 9d1145598abf9fddae2e88cca9e114c12a1b7d9d (diff) |
Cyrill Osterwalder posted a detailed analysis about a bug that occurs when
using a custom Host: header and curl fails to send a request on a re-used
persistent connection and thus creates a new connection and resends it. It
then sent two Host: headers. Cyrill's analysis was posted here:
http://curl.haxx.se/mail/archive-2005-01/0022.html
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c index 2822b16a4..6d037f098 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -342,7 +342,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles) gotourl = strdup(easy->easy_handle->change.url); if(gotourl) { easy->easy_handle->change.url_changed = FALSE; - easy->result = Curl_follow(easy->easy_handle, gotourl); + easy->result = Curl_follow(easy->easy_handle, gotourl, FALSE); if(CURLE_OK == easy->result) easy->state = CURLM_STATE_CONNECT; else @@ -518,7 +518,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles) easy->easy_conn->newurl = NULL; easy->result = Curl_done(&easy->easy_conn, CURLE_OK); if(easy->result == CURLE_OK) - easy->result = Curl_follow(easy->easy_handle, newurl); + easy->result = Curl_follow(easy->easy_handle, newurl, FALSE); if(CURLE_OK == easy->result) { easy->state = CURLM_STATE_CONNECT; result = CURLM_CALL_MULTI_PERFORM; |