mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复http multi form上传文件名相关bug(#2293)
This commit is contained in:
parent
44dde7a939
commit
15dc854e94
@ -289,11 +289,7 @@ Buffer::Ptr HttpMultiFormBody::readData(size_t size) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string HttpMultiFormBody::multiFormBodySuffix(const string &boundary) {
|
string HttpMultiFormBody::multiFormBodySuffix(const string &boundary) {
|
||||||
string MPboundary = string("--") + boundary;
|
return "\r\n--" + boundary + "--";
|
||||||
string endMPboundary = MPboundary + "--";
|
|
||||||
_StrPrinter body;
|
|
||||||
body << "\r\n" << endMPboundary;
|
|
||||||
return std::move(body);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
string HttpMultiFormBody::multiFormContentType(const string &boundary) {
|
string HttpMultiFormBody::multiFormContentType(const string &boundary) {
|
||||||
|
Loading…
Reference in New Issue
Block a user