mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 17:41:57 +08:00
fix: nil pointer in qiniu and upyun driver (#1146)
This commit is contained in:
@@ -118,7 +118,7 @@ func (handler Driver) Get(ctx context.Context, path string) (response.RSCloser,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取文件数据流
|
// 获取文件数据流
|
||||||
client := request.HTTPClient{}
|
client := request.NewClient()
|
||||||
resp, err := client.Request(
|
resp, err := client.Request(
|
||||||
"GET",
|
"GET",
|
||||||
downloadURL,
|
downloadURL,
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ func (handler Driver) Get(ctx context.Context, path string) (response.RSCloser,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取文件数据流
|
// 获取文件数据流
|
||||||
client := request.HTTPClient{}
|
client := request.NewClient()
|
||||||
resp, err := client.Request(
|
resp, err := client.Request(
|
||||||
"GET",
|
"GET",
|
||||||
downloadURL,
|
downloadURL,
|
||||||
|
|||||||
Reference in New Issue
Block a user