mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
set version to 2.4.5
backport the latest patch from main Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -67,6 +67,7 @@ func (f *httpdFile) Read(p []byte) (n int, err error) {
|
||||
}
|
||||
if err != nil && err != io.EOF {
|
||||
f.TransferError(err)
|
||||
err = f.ConvertError(err)
|
||||
return
|
||||
}
|
||||
f.HandleThrottle()
|
||||
@@ -91,6 +92,7 @@ func (f *httpdFile) Write(p []byte) (n int, err error) {
|
||||
}
|
||||
if err != nil {
|
||||
f.TransferError(err)
|
||||
err = f.ConvertError(err)
|
||||
return
|
||||
}
|
||||
f.HandleThrottle()
|
||||
|
||||
Reference in New Issue
Block a user