Skip to content

Commit 46de9e9

Browse files
skysliencesSky_slience
andauthored
fix(driver): 123 download and modify request headers on the frontend (#9236)
Co-authored-by: Sky_slience <[email protected]>
1 parent ae90fb5 commit 46de9e9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/123/driver.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,6 @@ func (d *Pan123) Link(ctx context.Context, file model.Obj, args model.LinkArgs)
113113
log.Debugln("res code: ", res.StatusCode())
114114
if res.StatusCode() == 302 {
115115
link.URL = res.Header().Get("location")
116-
} else if res.StatusCode() == 210 {
117-
link.URL = downloadUrl
118116
} else if res.StatusCode() < 300 {
119117
link.URL = utils.Json.Get(res.Body(), "data", "redirect_url").ToString()
120118
}

0 commit comments

Comments
 (0)