aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-30 17:05:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-30 17:05:19 +0000
commit3fb257c39c0dfd0163ec67101b96d328d8d5efe8 (patch)
tree6f54cedb364b47699f97d20a50da7ce031a7634d /lib/transfer.c
parent7c96c5a39b00f0ed1f1eb436154a5e92bc7637ed (diff)
modified to the new cookie function proto
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index cd9930c0f..2cfbfae3b 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -686,7 +686,12 @@ CURLcode Curl_readwrite(struct connectdata *conn,
}
else if(data->cookies &&
checkprefix("Set-Cookie:", k->p)) {
- Curl_cookie_add(data->cookies, TRUE, k->p+11, conn->name);
+ Curl_cookie_add(data->cookies, TRUE, k->p+11,
+ /* If there is a custom-set Host: name, use it
+ here, or else use real peer host name. */
+ conn->allocptr.cookiehost?
+ conn->allocptr.cookiehost:conn->name,
+ conn->ppath);
}
else if(checkprefix("Last-Modified:", k->p) &&
(data->set.timecondition || data->set.get_filetime) ) {