mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
curl: customrequest_helper: deal with NULL custom method
This commit is contained in:
parent
0e17369f5b
commit
fad9604613
@ -102,7 +102,9 @@ void customrequest_helper(struct OperationConfig *config, HttpReq req,
|
|||||||
"POST"
|
"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 "
|
notef(config->global, "Unnecessary use of -X or --request, %s is already "
|
||||||
"inferred.\n", dflt[req]);
|
"inferred.\n", dflt[req]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user