mirror of
https://git.sr.ht/~phw/scotty
synced 2025-07-15 12:53:36 +02:00
subsonic: set User Agent header in requests
This commit is contained in:
parent
614df100ac
commit
c034d7197c
2 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,7 @@ func (b *SubsonicApiBackend) InitConfig(config *config.ServiceConfig) error {
|
|||
BaseUrl: config.GetString("server-url"),
|
||||
User: config.GetString("username"),
|
||||
ClientName: version.AppName,
|
||||
UserAgent: version.UserAgent(),
|
||||
}
|
||||
b.password = config.GetString("token")
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue