curl-library
[PATCH] tool: fix CURLOPT_UNIX_SOCKET_PATH in --libcurl output
From: Peter Wu <peter_at_lekensteyn.nl>
Date: Thu, 4 Dec 2014 10:53:32 +0100
Date: Thu, 4 Dec 2014 10:53:32 +0100
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_at_lekensteyn.nl>
--- src/tool_operate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool_operate.c b/src/tool_operate.c index 43d6ec3..8eaec64 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1333,7 +1333,7 @@ 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) ? -- 2.1.3 --nextPart5668047.iqEGVvkTD8 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLQpMaXN0IGFkbWluOiBodHRwOi8vY29vbC5oYXh4LnNlL2xpc3QvbGlzdGluZm8v Y3VybC1saWJyYXJ5CkV0aXF1ZXR0ZTogIGh0dHA6Ly9jdXJsLmhheHguc2UvbWFpbC9ldGlxdWV0 dGUuaHRtbA== --nextPart5668047.iqEGVvkTD8--Received on 2001-09-17