You've already forked cpp-httplib
Use std::move for boundary in set_boundary method (#2298)
This commit is contained in:
@@ -5970,7 +5970,7 @@ public:
|
|||||||
FormDataParser() = default;
|
FormDataParser() = default;
|
||||||
|
|
||||||
void set_boundary(std::string &&boundary) {
|
void set_boundary(std::string &&boundary) {
|
||||||
boundary_ = boundary;
|
boundary_ = std::move(boundary);
|
||||||
dash_boundary_crlf_ = dash_ + boundary_ + crlf_;
|
dash_boundary_crlf_ = dash_ + boundary_ + crlf_;
|
||||||
crlf_dash_boundary_ = crlf_ + dash_ + boundary_;
|
crlf_dash_boundary_ = crlf_ + dash_ + boundary_;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user