subsonic: set User Agent header in requests

This commit is contained in:
Philipp Wolfer 2025-07-14 14:54:43 +02:00
parent 614df100ac
commit c034d7197c
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
2 changed files with 2 additions and 0 deletions

View file

@ -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