summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-03-17 15:29:45 +0100
committerSven Nierlein <sven@nierlein.de>2018-10-22 16:28:51 +0200
commit20fd1ade9192b7615e1250b0d529f165844a5630 (patch)
treea788324d511229dd871bbda92511c2d8cc7cefe9 /plugins
parentafa52eb83434b52cec2849cb2a39bc646561f713 (diff)
downloadmonitoring-plugins-20fd1ade9192b7615e1250b0d529f165844a5630.tar.gz
fixed a missing else before curl_easy_setopt CURLOPT_CUSTOMREQUEST
Diffstat (limited to 'plugins')
-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)
235 curl_easy_setopt (curl, CURLOPT_POST, 1); 235 curl_easy_setopt (curl, CURLOPT_POST, 1);
236 else if (!strcmp(http_method, "PUT")) 236 else if (!strcmp(http_method, "PUT"))
237 curl_easy_setopt (curl, CURLOPT_PUT, 1); 237 curl_easy_setopt (curl, CURLOPT_PUT, 1);
238 curl_easy_setopt (curl, CURLOPT_CUSTOMREQUEST, http_method); 238 else
239 curl_easy_setopt (curl, CURLOPT_CUSTOMREQUEST, http_method);
239 } 240 }
240 241
241 /* set hostname (virtual hosts) */ 242 /* set hostname (virtual hosts) */