- // if host did not work, try Host+Path next
- // FIXME: with host+path we need to match url.startswith(host+path)
- char *hostpath = strdupa (flNotFile(Uri.Host+Uri.Path).c_str ());
- if (hostpath && parsenetrc (hostpath, login, password, netrcfile) == 0)
+ // if host did not work, try Host+Path next, this will trigger
+ // a lookup uri.startswith(host) in the netrc file parser (because
+ // of the "/"
+ char *hostpath = strdup(string(Uri.Host+Uri.Path).c_str());
+ if (hostpath && parsenetrc_string(hostpath, login, password, netrcfile) == 0)