]> granicus.if.org Git - curl/commitdiff
include "share.h" for the cookie sharing
authorDaniel Stenberg <daniel@haxx.se>
Wed, 6 Aug 2003 15:26:24 +0000 (15:26 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 6 Aug 2003 15:26:24 +0000 (15:26 +0000)
lib/http.c
lib/transfer.c

index e0c5d73e75b9fa51fdfd05dba92961a69fc024dd..277e9026637600ac4e38644a61cd9f85d9a19752 100644 (file)
@@ -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>
index c4b1c90faf3469a6cc96ade019688a84314f8004..8c42cb7d45f762c2d1275512c66e0b62a11cc942 100644 (file)
@@ -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. */