aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andreas Baumann <mail@andreasbaumann.cc> 2017-03-17 15:29:45 +0100
committerGravatar Sven Nierlein <sven@nierlein.de> 2018-10-22 16:28:51 +0200
commit20fd1ade9192b7615e1250b0d529f165844a5630 (patch)
treea788324d511229dd871bbda92511c2d8cc7cefe9
parentafa52eb83434b52cec2849cb2a39bc646561f713 (diff)
downloadmonitoring-plugins-20fd1ade9192b7615e1250b0d529f165844a5630.tar.gz
fixed a missing else before curl_easy_setopt CURLOPT_CUSTOMREQUEST
-rw-r--r--plugins/check_curl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index a7e580d1..10ccadf6 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -235,7 +235,8 @@ check_http (void)
curl_easy_setopt (curl, CURLOPT_POST, 1);
else if (!strcmp(http_method, "PUT"))
curl_easy_setopt (curl, CURLOPT_PUT, 1);
- curl_easy_setopt (curl, CURLOPT_CUSTOMREQUEST, http_method);
+ else
+ curl_easy_setopt (curl, CURLOPT_CUSTOMREQUEST, http_method);
}
/* set hostname (virtual hosts) */