Code cleanup

pull/2/head
Tatsuhiro Tsujikawa 2011-11-05 00:45:09 +09:00
parent 5c88f61269
commit 150c1ab0c3
1 changed files with 4 additions and 4 deletions

View File

@ -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);