http: add support for relative location on redirect
[project/uclient.git] / uclient-http.c
index f0451cc..899f367 100644 (file)
@@ -1114,7 +1114,7 @@ int uclient_http_redirect(struct uclient *cl)
        if (!tb)
                return false;
 
-       url = uclient_get_url(blobmsg_data(tb), url->auth);
+       url = uclient_get_url_location(url, blobmsg_data(tb));
        if (!url)
                return false;