Skip to content

Commit

Permalink
feat: alist upload as task
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Nov 17, 2024
1 parent ecc7465 commit 36f24a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/alist/alist.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *Client) UploadStream(reader io.Reader, size int64, toDir string) (*Uplo

req.Header.Add("Authorization", c.token)
req.Header.Add("File-Path", url.PathEscape(toDir))
//req.Header.Add("As-Task", "true")
req.Header.Add("As-Task", "true")
req.Header.Add("Content-Type", "application/octet-stream")
req.ContentLength = size

Expand Down

0 comments on commit 36f24a7

Please sign in to comment.