فهرست منبع

fix DumpHeaders duplicated cookies (#599)

Co-authored-by: llx <llx@U-Q6Q0149D-2359.local>
caijillx 1 سال پیش
والد
کامیت
0b8149c674
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      http/Http1Parser.h

+ 3 - 0
http/Http1Parser.h

@@ -28,6 +28,9 @@ public:
                 HttpCookie cookie;
                 if (cookie.parse(header_value)) {
                     parsed->cookies.emplace_back(cookie);
+                    header_field.clear();
+		    header_value.clear();
+	            return;
                 }
             }
             parsed->headers[header_field] = header_value;