]> sjero.net Git - wget/blobdiff - src/retr.c
[svn] Various url.c-related changes.
[wget] / src / retr.c
index 95e663fa4f52d9f438ffdbd4ff438564f3fe6a6d..3aae5125324a10b1519e015f8828c0debcb06f63 100644 (file)
@@ -493,7 +493,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
         redirects, but a ton of boneheaded webservers and CGIs out
         there break the rules and use relative URLs, and popular
         browsers are lenient about this, so wget should be too. */
-      construced_newloc = url_concat (url, mynewloc);
+      construced_newloc = uri_merge (url, mynewloc);
       xfree (mynewloc);
       mynewloc = construced_newloc;