diff --git a/src/tool_xattr.c b/src/tool_xattr.c index a6bd223c36..f832e24757 100644 --- a/src/tool_xattr.c +++ b/src/tool_xattr.c @@ -55,7 +55,7 @@ char *stripcredentials(const char *url) char *nurl; u = curl_url(); if(u) { - uc = curl_url_set(u, CURLUPART_URL, url, 0); + uc = curl_url_set(u, CURLUPART_URL, url, CURLU_GUESS_SCHEME); if(uc) goto error;