zoom: fix http:// check
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 30 Nov 2012 17:50:03 +0000 (17:50 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 30 Nov 2012 17:50:03 +0000 (17:50 +0000)
src/filter_zoom.cpp

index d2ffb67..6a25157 100644 (file)
@@ -1424,7 +1424,7 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases(
     if (sptr->sru.length())
     {
         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);