From 5e46233e2ea5c0d6bcbbd59fb75b07b33f6ce6cc Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 2 Jun 2018 14:47:55 +0200 Subject: check_curl: removed die in redirect with relative paths, simple cases (same protocol, same host) actually work 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)); -- cgit v0.10-9-g596f