diff options
author | AlexSm <alex@ydb.tech> | 2024-01-18 11:28:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 11:28:56 +0100 |
commit | 9d0a3761b3201e0d9db879a7adf91876ebdb0564 (patch) | |
tree | 541d11ac878c18efd7ebca81e35112aa0fef995b /contrib/libs/curl/src/tool_helpers.c | |
parent | 404ef8886ecc9736bc58ade6da2fbd83b486a408 (diff) | |
download | ydb-9d0a3761b3201e0d9db879a7adf91876ebdb0564.tar.gz |
Library import 8 (#1074)
* Library import 8
* Add contrib/libs/cxxsupp/libcxx/include/__verbose_abort
Diffstat (limited to 'contrib/libs/curl/src/tool_helpers.c')
-rw-r--r-- | contrib/libs/curl/src/tool_helpers.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/libs/curl/src/tool_helpers.c b/contrib/libs/curl/src/tool_helpers.c index 3b2fe9d154..854bf777a0 100644 --- a/contrib/libs/curl/src/tool_helpers.c +++ b/contrib/libs/curl/src/tool_helpers.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -76,6 +76,8 @@ const char *param2text(int res) return "--continue-at and --remote-header-name cannot be combined"; case PARAM_READ_ERROR: return "error encountered when reading a file"; + case PARAM_EXPAND_ERROR: + return "variable expansion failure"; default: return "unknown error"; } @@ -99,7 +101,7 @@ int SetHTTPrequest(struct OperationConfig *config, HttpReq req, HttpReq *store) return 0; } warnf(config->global, "You can only select one HTTP request method! " - "You asked for both %s and %s.\n", + "You asked for both %s and %s.", reqname[req], reqname[*store]); return 1; @@ -122,11 +124,11 @@ void customrequest_helper(struct OperationConfig *config, HttpReq req, ; else if(curl_strequal(method, dflt[req])) { notef(config->global, "Unnecessary use of -X or --request, %s is already " - "inferred.\n", dflt[req]); + "inferred.", dflt[req]); } else if(curl_strequal(method, "head")) { warnf(config->global, "Setting custom HTTP method to HEAD with -X/--request may not work " - "the way you want. Consider using -I/--head instead.\n"); + "the way you want. Consider using -I/--head instead."); } } |