mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
parent
5292142046
commit
a4a9637738
1 changed files with 3 additions and 3 deletions
|
@ -2949,7 +2949,7 @@ public:
|
|||
bool is_valid() const { return is_valid_; }
|
||||
|
||||
template <typename T, typename U>
|
||||
bool parse(const char *buf, size_t n, T content_callback, U header_callback) {
|
||||
bool parse(const char *buf, size_t n, const T &content_callback, const U &header_callback) {
|
||||
|
||||
static const std::regex re_content_disposition(
|
||||
"^Content-Disposition:\\s*form-data;\\s*name=\"(.*?)\"(?:;\\s*filename="
|
||||
|
@ -4273,8 +4273,8 @@ inline bool Server::read_content_core(Stream &strm, Request &req, Response &res,
|
|||
}
|
||||
return true;
|
||||
*/
|
||||
return multipart_form_data_parser.parse(buf, n, std::move(multipart_receiver),
|
||||
std::move(mulitpart_header));
|
||||
return multipart_form_data_parser.parse(buf, n, multipart_receiver,
|
||||
mulitpart_header);
|
||||
};
|
||||
} else {
|
||||
out = std::move(receiver);
|
||||
|
|
Loading…
Reference in a new issue