We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b486af0 commit e0414e7Copy full SHA for e0414e7
internal/offline_download/http/client.go
@@ -10,6 +10,7 @@ import (
10
"strings"
11
"time"
12
13
+ "github.com/OpenListTeam/OpenList/v4/drivers/base"
14
"github.com/OpenListTeam/OpenList/v4/internal/model"
15
"github.com/OpenListTeam/OpenList/v4/internal/offline_download/tool"
16
"github.com/OpenListTeam/OpenList/v4/pkg/http_range"
@@ -58,6 +59,7 @@ func (s SimpleHttp) Run(task *tool.DownloadTask) error {
58
59
if err != nil {
60
return err
61
}
62
+ req.Header.Set("User-Agent", base.UserAgent)
63
if streamPut {
64
req.Header.Set("Range", "bytes=0-")
65
0 commit comments