fix(audio): set User-Agent header, add debug fetch logging

Set psysonic/<version> as User-Agent on the audio reqwest::Client to
prevent reverse proxies (nginx, Caddy, Traefik) from blocking requests
with a 403. Add #[cfg(debug_assertions)] logging in fetch_data to show
the exact URL, status, content-type and server header — useful for
diagnosing proxy-related 403s reported by users.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Psychotoxical
2026-04-09 23:52:02 +02:00
parent 05da369aad
commit 22f7de45e8
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -3397,7 +3397,7 @@ dependencies = [
[[package]]
name = "psysonic"
version = "1.34.6"
version = "1.34.7"
dependencies = [
"biquad",
"discord-rich-presence",