if (split == rest.size()) {
// http://foo
split_user_host(rest, user, host);
- fprintf(stderr, "ooo user='%s' host='%s'\n", user->c_str(), host->c_str());
*port = *protocol;
*path = "/";
return true;
return true;
}
-Input *create_input(const std::string &url)
+Input *create_input(const string &url)
{
string protocol, user, host, port, path;
if (!parse_url(url, &protocol, &user, &host, &port, &path)) {