mirror of https://github.com/cloudreve/Cloudreve
fix: nil pointer in qiniu and upyun driver (#1146)
parent
8443a30fb1
commit
8a222e7df4
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue