summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-06-02 14:47:55 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-06-02 14:47:55 +0200
commit5e46233e2ea5c0d6bcbbd59fb75b07b33f6ce6cc (patch)
tree71c39fa1f28c95acda0735f94620415b1e2fd0e8
parentd78dda5a01770c38fbe6900cb4d40689bef66872 (diff)
downloadmonitoring-plugins-5e46233.tar.gz
check_curl: removed die in redirect with relative paths, simple cases (same protocol, same host) actually work
-rw-r--r--plugins/check_curl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c
index 61bfd786..aa17d84d 100644
--- a/plugins/check_curl.c
+++ b/plugins/check_curl.c
@@ -1012,8 +1012,6 @@ redir (curlhelp_write_curlbuf* header_buf)
1012 * the original URL, so wy try to form a new absolute URL here 1012 * the original URL, so wy try to form a new absolute URL here
1013 */ 1013 */
1014 if (!uri.scheme.first && !uri.hostText.first) { 1014 if (!uri.scheme.first && !uri.hostText.first) {
1015 /* TODO: implement */
1016 die (STATE_UNKNOWN, _("HTTP UNKNOWN - non-absolute location, not implemented yet!\n"));
1017 new_host = strdup (host_name ? host_name : server_address); 1015 new_host = strdup (host_name ? host_name : server_address);
1018 } else { 1016 } else {
1019 new_host = strdup (uri_string (uri.hostText, buf, DEFAULT_BUFFER_SIZE)); 1017 new_host = strdup (uri_string (uri.hostText, buf, DEFAULT_BUFFER_SIZE));