From 5d2327929932bb18b0c683583f398855f0a31fed Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 23 Mar 2015 10:51:49 +0100 Subject: CURLOPT_PATH_AS_IS: added --path-as-is is the command line option Added docs in curl.1 and CURLOPT_PATH_AS_IS.3 Added test in test 1241 --- src/tool_getparam.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tool_getparam.c') diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 56aa03050..7f68b2852 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -177,6 +177,7 @@ static const struct LongShort aliases[]= { {"$K", "sasl-ir", FALSE}, {"$L", "test-event", FALSE}, {"$M", "unix-socket", TRUE}, + {"$N", "path-as-is", FALSE}, {"0", "http1.0", FALSE}, {"01", "http1.1", FALSE}, {"02", "http2", FALSE}, @@ -982,6 +983,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ case 'M': /* --unix-socket */ GetStr(&config->unix_socket_path, nextarg); break; + case 'N': /* --path-as-is */ + config->path_as_is = toggle; + break; } break; case '#': /* --progress-bar */ -- cgit v1.2.3