add ProtocolMessage attachment

This commit is contained in:
XieHan
2021-01-27 19:54:24 +08:00
parent 2da1aee6cb
commit c344ef41d6
5 changed files with 39 additions and 1 deletions
+6
View File
@@ -227,6 +227,9 @@ HttpMessage::HttpMessage(HttpMessage&& msg)
this->size_limit = msg.size_limit;
msg.size_limit = (size_t)-1;
this->attachment = msg.attachment;
msg.attachment = NULL;
this->parser = msg.parser;
msg.parser = NULL;
@@ -246,6 +249,9 @@ HttpMessage& HttpMessage::operator = (HttpMessage&& msg)
this->size_limit = msg.size_limit;
msg.size_limit = (size_t)-1;
this->attachment = msg.attachment;
msg.attachment = NULL;
http_parser_deinit(this->parser);
delete this->parser;