aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-06 15:26:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-06 15:26:24 +0000
commitc704d1545c83950564476a0be66fe5b21326820c (patch)
treedee8ebed6a45c5cf35458daaaa8b9f6261c1c33b
parent62b65a5f2015105af493c2c2facf3456dd676b84 (diff)
include "share.h" for the cookie sharing
-rw-r--r--lib/http.c1
-rw-r--r--lib/transfer.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index e0c5d73e7..277e90266 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -92,6 +92,7 @@
#include "http_ntlm.h"
#include "http_negotiate.h"
#include "url.h"
+#include "share.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
diff --git a/lib/transfer.c b/lib/transfer.c
index c4b1c90fa..8c42cb7d4 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -97,6 +97,7 @@
#include "http_digest.h"
#include "http_ntlm.h"
#include "http_negotiate.h"
+#include "share.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -706,7 +707,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
}
else if(data->cookies &&
checkprefix("Set-Cookie:", k->p)) {
- Curl_share_lock(data, CURL_LOCK_DATA_COOKIE, CURL_LOCK_ACCESS_SINGLE);
+ Curl_share_lock(data, CURL_LOCK_DATA_COOKIE,
+ CURL_LOCK_ACCESS_SINGLE);
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. */