1
0
mirror of synced 2025-12-18 16:34:09 +03:00

Use std::move for boundary in set_boundary method (#2298)

This commit is contained in:
Aaron Gokaslan
2025-12-09 22:24:33 -05:00
committed by GitHub
parent f441cd2a44
commit c23764269d

View File

@@ -5970,7 +5970,7 @@ public:
FormDataParser() = default;
void set_boundary(std::string &&boundary) {
boundary_ = boundary;
boundary_ = std::move(boundary);
dash_boundary_crlf_ = dash_ + boundary_ + crlf_;
crlf_dash_boundary_ = crlf_ + dash_ + boundary_;
}