Parcourir la source

Use && for parameter of boundary

yhirose il y a 5 ans
Parent
commit
969cccd52a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

@@ -2817,7 +2817,7 @@ class MultipartFormDataParser {
 public:
   MultipartFormDataParser() = default;
 
-  void set_boundary(std::string boundary) { boundary_ = std::move(boundary); }
+  void set_boundary(std::string &&boundary) { boundary_ = boundary; }
 
   bool is_valid() const { return is_valid_; }