Unverified Commit e1ee4313 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #331 from hasankandemir1993/master

resolved conflicts for pull request 319
parents dfa55ba9 a08f2b5e
......@@ -110,7 +110,7 @@ public:
CookieJar();
void add(const Cookie& cookie);
void removeCookie(const std::string& name); // Unimplemented
void removeAllCookies();
void addFromRaw(const char *str, size_t len);
Cookie get(const std::string& name) const;
......
......@@ -228,9 +228,9 @@ CookieJar::add(const Cookie& cookie) {
}
void // Unimplemented
CookieJar::removeCookie(const std::string& /*name*/) {
// Empty for now, can be used later
void
CookieJar::removeAllCookies() {
cookies.clear();
}
void
......
......@@ -294,6 +294,9 @@ namespace Private {
}
if (name == "Cookie") {
message->cookies_.removeAllCookies(); // removing existing cookies before re-adding them.
message->cookies_.addFromRaw(cursor.offset(start), cursor.diff(start));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment