diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-09-11 18:49:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-09-11 18:49:28 +0200 |
commit | fad96046138a8fa506589218cd871cc3848d1169 (patch) | |
tree | 43610503e9c40d3a17b4a5e783c1e6139453086f /src/tool_helpers.c | |
parent | 0e17369f5bd04c8e2d9829e726dd3e50f7f6140a (diff) | |
download | curl-fad96046138a8fa506589218cd871cc3848d1169.tar.gz |
curl: customrequest_helper: deal with NULL custom method
Diffstat (limited to 'src/tool_helpers.c')
-rw-r--r-- | src/tool_helpers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_helpers.c b/src/tool_helpers.c index f17d09f50..e264ac795 100644 --- a/src/tool_helpers.c +++ b/src/tool_helpers.c @@ -102,7 +102,9 @@ void customrequest_helper(struct OperationConfig *config, HttpReq req, "POST" }; - if(curl_strequal(method, dflt[req])) { + if(!method) + ; + else if(curl_strequal(method, dflt[req])) { notef(config->global, "Unnecessary use of -X or --request, %s is already " "inferred.\n", dflt[req]); } |