diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-17 15:29:45 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 16:28:51 +0200 |
commit | 20fd1ade9192b7615e1250b0d529f165844a5630 (patch) | |
tree | a788324d511229dd871bbda92511c2d8cc7cefe9 | |
parent | afa52eb83434b52cec2849cb2a39bc646561f713 (diff) | |
download | monitoring-plugins-20fd1ade9192b7615e1250b0d529f165844a5630.tar.gz |
fixed a missing else before curl_easy_setopt CURLOPT_CUSTOMREQUEST
-rw-r--r-- | plugins/check_curl.c | 3 |
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) */ |