tool: fix CURLOPT_UNIX_SOCKET_PATH in --libcurl output

Mark CURLOPT_UNIX_SOCKET_PATH as string to ensure that it ends up as
option in the file generated by --libcurl.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Peter Wu 2014-12-04 11:01:41 -08:00 committed by Daniel Stenberg
parent 4fd0add1cd
commit 2e557de094
1 changed files with 2 additions and 1 deletions

View File

@ -1333,7 +1333,8 @@ static CURLcode operate_do(struct GlobalConfig *global,
/* new in 7.40.0 */
if(config->unix_socket_path)
my_setopt(curl, CURLOPT_UNIX_SOCKET_PATH, config->unix_socket_path);
my_setopt_str(curl, CURLOPT_UNIX_SOCKET_PATH,
config->unix_socket_path);
/* initialize retry vars for loop below */
retry_sleep_default = (config->retry_delay) ?