summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_helpers.c4
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]);
}