std::string url(sptr->target);
if (sptr->sru.length())
{
- yaz_log(YLOG_LOG, "Got URL %s", url.c_str());
b->set_option("sru", sptr->sru);
- if (url.find_first_of("://") == std::string::npos)
+ if (url.find("://") == std::string::npos)
url = "http://" + url;
if (sptr->sru_version.length())
b->set_option("sru_version", sptr->sru_version);