Skip to content

Commit 5de6b66

Browse files
authored
fix(terabox): user not exists error (#1056)
* fix user location error when upload file
1 parent 71ada3b commit 5de6b66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/terabox/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (d *Terabox) Remove(ctx context.Context, obj model.Obj) error {
132132
func (d *Terabox) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, up driver.UpdateProgress) error {
133133
resp, err := base.RestyClient.R().
134134
SetContext(ctx).
135-
Get("https://d.terabox.com/rest/2.0/pcs/file?method=locateupload")
135+
Get("https://" + d.url_domain_prefix + "-data.terabox.com/rest/2.0/pcs/file?method=locateupload")
136136
if err != nil {
137137
return err
138138
}

0 commit comments

Comments
 (0)