add more cookie tests
[m6w6/ext-http] / src / php_http_client_curl.c
index 1c84e3dde7940d50d62ea544d3016ad66b1129e9..389464bad77f4fc77c17016892c6bd8848740f6b 100644 (file)
@@ -2074,6 +2074,10 @@ static void php_http_client_curl_handler_clear(php_http_client_curl_handler_t *h
        curl_easy_setopt(handler->handle, CURLOPT_DEBUGFUNCTION, NULL);
        curl_easy_setopt(handler->handle, CURLOPT_COOKIELIST, "FLUSH");
        curl_easy_setopt(handler->handle, CURLOPT_SHARE, NULL);
+       /* see gh issue #84 */
+       //if (php_http_curle_get_storage(handler->handle)->cookiestore) {
+               //curl_easy_setopt(handler->handle, CURLOPT_COOKIEJAR, NULL);
+       //}
 }
 
 static void php_http_client_curl_handler_dtor(php_http_client_curl_handler_t *handler)