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

This commit is contained in:
Andreas Baumann 2018-06-02 14:47:55 +02:00 committed by Sven Nierlein
parent aa3b63215c
commit 5811729632

View file

@ -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));