mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
fix(ssl): strip trailing slash in getBaseUrl + trust OS certificate store for HTTPS streaming
Fixes two bugs reported in #178: - getBaseUrl() now strips trailing slashes from server URLs, consistent with restBaseFromUrl(). A trailing slash caused double-slash stream URLs (//rest/stream.view) which Caddy rejects. Trailing slash also caused browsing to return 0 results. Fix manually ported from PR #179 by kveld9. - reqwest now loads the OS native certificate store in addition to Mozilla's webpki roots (rustls-tls-native-roots feature). Fixes HTTPS streaming failures where the server certificate is signed by a local CA (e.g. Caddy internal CA) that is trusted in the system keychain but not in Mozilla's root store. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,7 @@ serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
rodio = { version = "0.19", default-features = false, features = ["symphonia-all"] }
|
||||
symphonia = { version = "0.5", default-features = false, features = ["flac", "mp3", "pcm", "aac", "alac", "isomp4", "vorbis", "ogg", "wav", "adpcm"] }
|
||||
reqwest = { version = "0.12", default-features = false, features = ["stream", "json", "multipart", "rustls-tls", "blocking"] }
|
||||
reqwest = { version = "0.12", default-features = false, features = ["stream", "json", "multipart", "rustls-tls", "rustls-tls-native-roots", "blocking"] }
|
||||
futures-util = "0.3"
|
||||
md5 = "0.7"
|
||||
tokio = { version = "1", features = ["rt", "time", "sync"] }
|
||||
|
||||
Reference in New Issue
Block a user