fix(driver): 123 download and modify request headers on the frontend (#9236)

Co-authored-by: Sky_slience <Skyslience@spdzy.com>
pull/9247/head
Sky_slience 2025-08-03 20:00:09 +08:00 committed by GitHub
parent ae90fb579b
commit 46de9e9ebb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -113,8 +113,6 @@ func (d *Pan123) Link(ctx context.Context, file model.Obj, args model.LinkArgs)
log.Debugln("res code: ", res.StatusCode())
if res.StatusCode() == 302 {
link.URL = res.Header().Get("location")
} else if res.StatusCode() == 210 {
link.URL = downloadUrl
} else if res.StatusCode() < 300 {
link.URL = utils.Json.Get(res.Body(), "data", "redirect_url").ToString()
}