music-assistant-server

Branch:dev-lidarr-plugin

Commit Details

Fix HTTP proxy URL parsing for wss:// WebSocket URLs (#3168)

* Fix HTTP proxy URL parsing for wss:// WebSocket URLs

The HTTP proxy handler constructed the local HTTP URL by stripping
"ws://" from local_ws_url with a simple string replace. When the
server uses SSL, local_ws_url is "wss://..." which didn't match the
replace, producing a broken URL like "http://wss:/imageproxy?..." and
causing all proxy requests to fail with DNS resolution errors.

Use urllib.parse.urlparse instead, which correctly handles both ws://
and wss:// schemes.

* Move urlparse import to top-level to fix PLC0415 lint error

Co-Authored-By: Claude Opus 4.6 <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 <[email protected]>
Forgejo

Author

February 15, 2026 at 05:32 PM UTC

Committer

February 15, 2026 at 05:32 PM UTC
6additions
5deletions
1file changed

Parent commits

Changes

1 file
+6-5

Changed Files (1)

music_assistant/controllers/webserver/remote_access/
music_assistant/controllers/webserver/remote_access/gateway.py
+6-5