diff options
-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) */ |