diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-17 15:29:45 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-17 15:29:45 +0100 |
commit | 5b6cbb27bda5da82f276fa5f851033cf089a1a7b (patch) | |
tree | b684b91497d91a5f1975e6331fddba6382c27553 | |
parent | 5959c5072c1f6b82cf984443a0a0a044f645d4d6 (diff) | |
download | monitoring-plugins-5b6cbb2.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) */ |