aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-09-11 18:49:28 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-09-11 18:49:28 +0200
commitfad96046138a8fa506589218cd871cc3848d1169 (patch)
tree43610503e9c40d3a17b4a5e783c1e6139453086f /src
parent0e17369f5bd04c8e2d9829e726dd3e50f7f6140a (diff)
curl: customrequest_helper: deal with NULL custom method
Diffstat (limited to 'src')
-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]);
}