Test: remote handler.delete

This commit is contained in:
HFO4
2020-01-01 20:34:25 +08:00
parent bf0998f3a5
commit fffcf1aa1b
3 changed files with 105 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import (
"github.com/HFO4/cloudreve/pkg/filesystem/local"
"github.com/HFO4/cloudreve/pkg/filesystem/remote"
"github.com/HFO4/cloudreve/pkg/filesystem/response"
"github.com/HFO4/cloudreve/pkg/request"
"github.com/HFO4/cloudreve/pkg/serializer"
"github.com/gin-gonic/gin"
"io"
@@ -152,6 +153,7 @@ func (fs *FileSystem) dispatchHandler() error {
case "remote":
fs.Handler = remote.Handler{
Policy: currentPolicy,
Client: request.HTTPClient{},
}
return nil
default: