mirror of https://github.com/aria2/aria2
Code cleanup
parent
5c88f61269
commit
150c1ab0c3
|
@ -219,10 +219,10 @@ bool parse
|
||||||
if(p.first == p.second) {
|
if(p.first == p.second) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
std::string cookieName(p.first, p.second);
|
Scip cookieName(p.first, p.second);
|
||||||
p = util::stripIter(eq+1, nvEnd);
|
p = util::stripIter(eq+1, nvEnd);
|
||||||
p = util::stripIter(p.first, p.second, "\"");
|
p = util::stripIter(p.first, p.second, "\"");
|
||||||
std::string cookieValue(p.first, p.second);
|
Scip cookieValue(p.first, p.second);
|
||||||
time_t expiryTime = 0;
|
time_t expiryTime = 0;
|
||||||
bool foundExpires = false;
|
bool foundExpires = false;
|
||||||
bool persistent = false;
|
bool persistent = false;
|
||||||
|
@ -337,8 +337,8 @@ bool parse
|
||||||
cookiePath = defaultPath;
|
cookiePath = defaultPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
cookie.setName(cookieName);
|
cookie.setName(cookieName.first, cookieName.second);
|
||||||
cookie.setValue(cookieValue);
|
cookie.setValue(cookieValue.first, cookieValue.second);
|
||||||
cookie.setExpiryTime(expiryTime);
|
cookie.setExpiryTime(expiryTime);
|
||||||
cookie.setPersistent(persistent);
|
cookie.setPersistent(persistent);
|
||||||
cookie.setDomain(cookieDomain);
|
cookie.setDomain(cookieDomain);
|
||||||
|
|
Loading…
Reference in New Issue