[monitoring-plugins] check_curl: removed die in redirect with relative ...

Andreas Baumann git at monitoring-plugins.org
Sat Jun 2 14:50:14 CEST 2018


 Module: monitoring-plugins
 Branch: feature_check_curl
 Commit: 5e46233e2ea5c0d6bcbbd59fb75b07b33f6ce6cc
 Author: Andreas Baumann <mail at andreasbaumann.cc>
   Date: Sat Jun  2 14:47:55 2018 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=5e46233

check_curl: removed die in redirect with relative paths, simple cases (same protocol, same host) actually work

---

 plugins/check_curl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 61bfd78..aa17d84 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1012,8 +1012,6 @@ redir (curlhelp_write_curlbuf* header_buf)
    * the original URL, so wy try to form a new absolute URL here
    */
   if (!uri.scheme.first && !uri.hostText.first) {
-    /* TODO: implement */
-    die (STATE_UNKNOWN, _("HTTP UNKNOWN - non-absolute location, not implemented yet!\n"));
     new_host = strdup (host_name ? host_name : server_address);
   } else {
     new_host = strdup (uri_string (uri.hostText, buf, DEFAULT_BUFFER_SIZE));



More information about the Commits mailing list