1
0
Эх сурвалжийг харах

fix #324: HttpCookie supports saving multiple names

ithewei 3 жил өмнө
parent
commit
397aaba1c6
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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()) {