Lowcase PREF_METALINK_LOCATION before split.

pull/1/head
Tatsuhiro Tsujikawa 2011-07-25 23:58:38 +09:00
parent 5a4a627d72
commit 3b9a751757
1 changed files with 1 additions and 3 deletions

View File

@ -158,10 +158,8 @@ Metalink2RequestGroup::createRequestGroup
std::sort(selectIndexes.begin(), selectIndexes.end());
std::vector<std::string> locations;
if(option->defined(PREF_METALINK_LOCATION)) {
util::split(option->get(PREF_METALINK_LOCATION),
util::split(util::toLower(option->get(PREF_METALINK_LOCATION)),
std::back_inserter(locations), ",", true);
std::transform
(locations.begin(), locations.end(), locations.begin(), util::toLower);
}
std::string preferredProtocol;
if(option->get(PREF_METALINK_PREFERRED_PROTOCOL) != V_NONE) {