From: Daniel Stenberg Date: Fri, 11 Sep 2015 16:49:28 +0000 (+0200) Subject: curl: customrequest_helper: deal with NULL custom method X-Git-Tag: curl-7_45_0~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fad96046138a8fa506589218cd871cc3848d1169;p=curl curl: customrequest_helper: deal with NULL custom method --- 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]); }