c_init: Set CURLOPT_COOKIEFILE="" conditionally
commit6dae749e4e044a28894c857f91d74cbdff199e60
authorToni Gundogdu <legatvs@gmail.com>
Sat, 31 Aug 2013 12:48:11 +0000 (31 15:48 +0300)
committerToni Gundogdu <legatvs@gmail.com>
Sat, 31 Aug 2013 12:51:59 +0000 (31 15:51 +0300)
tree61375b85433600c5dfbfac9c9326d8fe5d2433bd
parentf158aa9c082561eec3af9b209ff4aca769af0a4f
c_init: Set CURLOPT_COOKIEFILE="" conditionally

Enable cookie support only if QUVI_OPTION_ALLOW_COOKIE was set to
QUVI_TRUE.

The earlier libquvi 0.9 versions presumed, incorrectly, that setting
CURLOPT_COOKIELIST="ALL" would cause libcurl to parse the received
cookies and use them in the subsequent HTTP requests. Setting
CURLOPT_COOKIEFILE="" fixes that.

Signed-off-by: Toni Gundogdu <legatvs@gmail.com>
src/curl/init.c