Browse Source

fix #324: HttpCookie supports saving multiple names

ithewei 3 năm trước cách đây
mục cha
commit
397aaba1c6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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()) {