add support for passing in auth to uclient_set_url()
[project/uclient.git] / uclient.c
index 5b71bf4..2ac052d 100644 (file)
--- a/uclient.c
+++ b/uclient.c
@@ -132,12 +132,12 @@ struct uclient *uclient_new(const char *url_str, const char *auth_str, const str
        return cl;
 }
 
        return cl;
 }
 
-int uclient_set_url(struct uclient *cl, const char *url_str)
+int uclient_set_url(struct uclient *cl, const char *url_str, const char *auth_str)
 {
        const struct uclient_backend *backend = cl->backend;
        struct uclient_url *url = cl->url;
 
 {
        const struct uclient_backend *backend = cl->backend;
        struct uclient_url *url = cl->url;
 
-       url = uclient_get_url(url_str, NULL);
+       url = uclient_get_url(url_str, auth_str);
        if (!url)
                return -1;
 
        if (!url)
                return -1;