fix(139,189,189pc,alidrive,onedrive,yandex):http response body is not close #1072

This commit is contained in:
foxxorcat
2022-05-10 21:35:42 +08:00
parent a9027c0f06
commit b6af9aa587
6 changed files with 11 additions and 1 deletions

View File

@ -577,6 +577,7 @@ func (driver Cloud189) NewUpload(file *model.FileStream, account *model.Account)
r, err := base.HttpClient.Do(req)
log.Debugf("%+v %+v", r, r.Request.Header)
r.Body.Close()
if err != nil {
return err
}