From 4fdad31fd199ef97b078f6355463d64ce598e85e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 5 Jul 2016 12:39:01 +0200 Subject: http: add support for relative location on redirect Signed-off-by: Felix Fietkau --- uclient-http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uclient-http.c') diff --git a/uclient-http.c b/uclient-http.c index f0451cc..899f367 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -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; -- cgit v1.2.1