Skip to content

Commit

Permalink
fix(alist storage): remove header "As-Task" in file save request
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Mar 3, 2025
1 parent 1472c11 commit e178e7e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion storage/alist/alist.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func (a *Alist) Save(ctx context.Context, filePath string, storagePath string) (
resp, err := reqClient.R().SetContext(ctx).SetFileBytes("file", filepath.Base(storagePath), fileBytes).
SetHeaders(map[string]string{
"File-Path": url.PathEscape(storagePath),
"As-Task": "true",
}).Put("/api/fs/form")
if err != nil {
common.Logger.Errorf("failed to save file: %s", err)
Expand Down

0 comments on commit e178e7e

Please sign in to comment.