X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient.c;fp=uclient.c;h=2e3d3ae4e53e54f9acf91106ce4c6650f47bab18;hp=b020ad0a6798e4d31025d01c7c29346ac9d0b00f;hb=4a3a8cb176aa932ed4bc88354fad76d91764c65f;hpb=299b1af9c051248771537980ee2d16c29c61376d diff --git a/uclient.c b/uclient.c index b020ad0..2e3d3ae 100644 --- a/uclient.c +++ b/uclient.c @@ -112,12 +112,12 @@ free: return NULL; } -struct uclient *uclient_new(const char *url_str, const struct uclient_cb *cb) +struct uclient *uclient_new(const char *url_str, const char *auth_str, const struct uclient_cb *cb) { struct uclient *cl; struct uclient_url *url; - url = uclient_get_url(url_str, NULL); + url = uclient_get_url(url_str, auth_str); if (!url) return NULL;