Kaynağa Gözat

fix #324: HttpCookie supports saving multiple names

ithewei 3 yıl önce
ebeveyn
işleme
397aaba1c6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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()) {