fix(trainbit): remove unnecessary operation (#3881)

This commit is contained in:
Night Space
2023-03-18 13:52:36 +08:00
committed by GitHub
parent 8b109cfe40
commit 023107226c
2 changed files with 5 additions and 23 deletions

View File

@ -119,7 +119,7 @@ func (d *Trainbit) Put(ctx context.Context, dstDir model.Obj, stream model.FileS
query := &url.Values{}
query.Add("q", strings.Split(dstDir.GetID(), "_")[1])
query.Add("guid", guid)
query.Add("name", url.QueryEscape(local2provider(stream.GetName(), false)))
query.Add("name", url.QueryEscape(local2provider(stream.GetName(), false) + "."))
endpoint.RawQuery = query.Encode()
var total int64
total = 0