navidrome/adapters/lastfm
Rob Emery 3da2b590e7
fix: add Navidrome UserAgent in all outgoing requests (#6020)
* There has been a report about navidrome hitting listenbrainz hard
and the listenbrainz guys wanting to be able to distinguish navidrome

* feat: apply Navidrome User-Agent to all outgoing HTTP requests

Add utils/httpclient, a shared http.Client factory whose transport sets
the User-Agent header (Navidrome/{version} - https://github.com/navidrome)
on any request that does not already have one, and use it at every place
the server builds an HTTP client: Last.fm, ListenBrainz and Deezer agents
and auth routers, insights collector, backgrounds handler, and the plugin
host HTTP service. Plugin-set User-Agent values are preserved. The
per-request header lines from the previous commit are superseded by the
transport.

---------

Co-authored-by: Deluan <deluan@navidrome.org>
2026-08-24 11:22:32 -04:00
..
agent.go fix: add Navidrome UserAgent in all outgoing requests (#6020) 2026-08-24 11:22:32 -04:00
agent_test.go feat(artwork): new artwork pipeline with background resolution and Low Quality Image Placeholders (#5847) 2026-08-09 15:03:27 -04:00
auth_router.go fix: add Navidrome UserAgent in all outgoing requests (#6020) 2026-08-24 11:22:32 -04:00
auth_router_test.go feat(jellyfin): non-expiring, audience-scoped tokens revocable by password change (#6013) 2026-08-22 20:36:24 -04:00
client.go feat(agents): support multiple languages for Last.fm and Deezer metadata (#4952) 2026-01-29 13:05:51 -05:00
client_test.go feat(agents): support multiple languages for Last.fm and Deezer metadata (#4952) 2026-01-29 13:05:51 -05:00
lastfm_suite_test.go refactor: move agent files to adapters for consistency 2026-01-14 19:33:54 -05:00
link_token.go fix(lastfm): require signed state token on link callback (#5521) 2026-05-23 12:16:15 -03:00
responses.go feat: add similar songs functionality in agents, and Instant Mix (song-based) to UI (#4919) 2026-01-25 16:16:43 -05:00
responses_test.go refactor: move agent files to adapters for consistency 2026-01-14 19:33:54 -05:00
token_received.html refactor: move agent files to adapters for consistency 2026-01-14 19:33:54 -05:00