diff --git a/backend/webdav/tus-uploader.go b/backend/webdav/tus-uploader.go index f51683b11..2b3c850b5 100644 --- a/backend/webdav/tus-uploader.go +++ b/backend/webdav/tus-uploader.go @@ -31,6 +31,9 @@ func (u *Uploader) NotifyUploadProgress(c chan Upload) { } func (f *Fs) shouldRetryChunk(ctx context.Context, resp *http.Response, err error, newOff *int64) (bool, error) { + if resp == nil { + return true, err + } switch resp.StatusCode { case 204: