diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-29 14:52:12 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-29 14:52:12 +0100 |
commit | 438ebb9ce2bfd5cf3ab940667029c27346dc5160 (patch) | |
tree | 6470987079c90334e6ca43a05e8de4eb462ceb14 /uclient.c | |
parent | 2b80c2689068258eab5e94f92a6d1e7b7550094b (diff) | |
download | uclient-438ebb9ce2bfd5cf3ab940667029c27346dc5160.tar.gz |
add support for passing in auth to uclient_set_url()
Diffstat (limited to 'uclient.c')
-rw-r--r-- | uclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -132,12 +132,12 @@ struct uclient *uclient_new(const char *url_str, const char *auth_str, const str 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; - url = uclient_get_url(url_str, NULL); + url = uclient_get_url(url_str, auth_str); if (!url) return -1; |