Browse Source

tool_xattr: "guess" URL scheme if none is provided

... when figuring out the source URL to store.

Reported-by: Dagfinn Ilmari Mannsåker
Fixes #13205
Closes #13221
Daniel Stenberg 4 weeks ago
parent
commit
5564751f27
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/tool_xattr.c

+ 1 - 1
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;