修复http multi form上传文件名相关bug(#2293)

This commit is contained in:
mtdxc 2023-03-11 21:08:39 +08:00 committed by GitHub
parent 44dde7a939
commit 15dc854e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,11 +289,7 @@ Buffer::Ptr HttpMultiFormBody::readData(size_t size) {
}
string HttpMultiFormBody::multiFormBodySuffix(const string &boundary) {
string MPboundary = string("--") + boundary;
string endMPboundary = MPboundary + "--";
_StrPrinter body;
body << "\r\n" << endMPboundary;
return std::move(body);
return "\r\n--" + boundary + "--";
}
string HttpMultiFormBody::multiFormContentType(const string &boundary) {