/* This file is part of Metaproxy.
- Copyright (C) 2005-2012 Index Data
+ Copyright (C) 2005-2013 Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
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);