修复编译问题

This commit is contained in:
xiongziliang
2021-01-17 20:15:08 +08:00
parent b6cbc87712
commit 5d752c89b5
20 changed files with 34 additions and 37 deletions

View File

@@ -144,7 +144,7 @@ Buffer::Ptr HttpFileBody::readData(size_t size) {
//读到数据了
ret->setSize(iRead);
_offset += iRead;
return ret;
return std::move(ret);
}
//读取文件异常,文件真实长度小于声明长度
_offset = _max_size;
@@ -218,7 +218,7 @@ string HttpMultiFormBody::multiFormBodySuffix(const string &boundary){
string endMPboundary = MPboundary + "--";
_StrPrinter body;
body << "\r\n" << endMPboundary;
return body;
return std::move(body);
}
size_t HttpMultiFormBody::fileSize(FILE *fp) {
@@ -244,7 +244,7 @@ string HttpMultiFormBody::multiFormBodyPrefix(const HttpArgs &args,const string
body << MPboundary << "\r\n";
body << "Content-Disposition: form-data; name=\"" << "file" << "\";filename=\"" << fileName << "\"\r\n";
body << "Content-Type: application/octet-stream\r\n\r\n" ;
return body;
return std::move(body);
}
}//namespace mediakit