mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 08:42:17 -04:00
check_curl: removed die in redirect with relative paths, simple cases (same protocol, same host) actually work
This commit is contained in:
parent
aa3b63215c
commit
5811729632
1 changed files with 0 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue