mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
parent
5292142046
commit
a4a9637738
@ -2949,7 +2949,7 @@ public:
|
|||||||
bool is_valid() const { return is_valid_; }
|
bool is_valid() const { return is_valid_; }
|
||||||
|
|
||||||
template <typename T, typename U>
|
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(
|
static const std::regex re_content_disposition(
|
||||||
"^Content-Disposition:\\s*form-data;\\s*name=\"(.*?)\"(?:;\\s*filename="
|
"^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 true;
|
||||||
*/
|
*/
|
||||||
return multipart_form_data_parser.parse(buf, n, std::move(multipart_receiver),
|
return multipart_form_data_parser.parse(buf, n, multipart_receiver,
|
||||||
std::move(mulitpart_header));
|
mulitpart_header);
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
out = std::move(receiver);
|
out = std::move(receiver);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user