Explorar o código

fix #324: HttpCookie supports saving multiple names

ithewei %!s(int64=3) %!d(string=hai) anos
pai
achega
397aaba1c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      http/HttpMessage.cpp

+ 1 - 1
http/HttpMessage.cpp

@@ -72,7 +72,7 @@ bool HttpCookie::parse(const std::string& str) {
 }
 
 std::string HttpCookie::dump() const {
-    assert(!name.empty());
+    assert(!name.empty() || !kv.empty());
     std::string res;
 
     if (!name.empty()) {