Skip to content
Snippets Groups Projects
Commit fad96046 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl: customrequest_helper: deal with NULL custom method

parent 0e17369f
No related branches found
No related tags found
No related merge requests found
......@@ -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]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment