修复某些 webdav 服务器上传文件时文件大小必传导致上传失败的 bug

This commit is contained in:
zhaojun
2025-04-23 20:30:01 +08:00
parent f3152085ef
commit d83e85b6bb
@@ -178,7 +178,7 @@ public class WebdavServiceImpl extends AbstractProxyTransferService<WebdavParam>
public void uploadFile(String pathAndName, InputStream inputStream) {
try {
pathAndName = getRequestPath(pathAndName);
sardine.put(pathAndName, inputStream);
sardine.put(pathAndName, inputStream, null, true, inputStream.available());
} catch (IOException e) {
throw ExceptionUtil.wrapRuntime(e);
}