Test: options / WebDAV middleware

This commit is contained in:
HFO4
2020-02-21 11:16:25 +08:00
parent c817f70f8e
commit 5363b90167
5 changed files with 41 additions and 2 deletions

View File

@@ -122,6 +122,7 @@ func (handler Driver) Put(ctx context.Context, file io.ReadCloser, dst string, s
"X-FileName": {fileName},
}),
request.WithContentLength(int64(size)),
request.WithTimeout(time.Duration(0)),
).CheckHTTPResponse(200).DecodeResponse()
if err != nil {
return err