curl: customrequest_helper: deal with NULL custom method

This commit is contained in:
Daniel Stenberg 2015-09-11 18:49:28 +02:00
parent 0e17369f5b
commit fad9604613
1 changed files with 3 additions and 1 deletions

View File

@ -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]);
}