mirror of https://github.com/aria2/aria2
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed the call to trim() because trim() is called for each element in split(). * src/CookieParser.ccpull/1/head
parent
c8d34a46be
commit
7e694d38cb
|
@ -1,3 +1,9 @@
|
||||||
|
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Removed the call to trim() because trim() is called for each
|
||||||
|
element in split().
|
||||||
|
* src/CookieParser.cc
|
||||||
|
|
||||||
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Replaced Util::slice() with split()
|
Replaced Util::slice() with split()
|
||||||
|
|
|
@ -63,7 +63,7 @@ Cookie CookieParser::parse(const std::string& cookieStr) const
|
||||||
Cookie CookieParser::parse(const std::string& cookieStr, const std::string& defaultDomain, const std::string& defaultPath) const
|
Cookie CookieParser::parse(const std::string& cookieStr, const std::string& defaultDomain, const std::string& defaultPath) const
|
||||||
{
|
{
|
||||||
std::vector<std::string> terms;
|
std::vector<std::string> terms;
|
||||||
split(Util::trim(cookieStr), std::back_inserter(terms), ";", true);
|
split(cookieStr, std::back_inserter(terms), ";", true);
|
||||||
if(terms.empty()) {
|
if(terms.empty()) {
|
||||||
return Cookie();
|
return Cookie();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue