fix: harden media URL handling

This commit is contained in:
Goon committed 2026-06-15 10:20:21 +07:00
1 parent fef98b4dd7
commit 1dea4a21cf
6 files changed
+87 -16

No files matched your search

+1 -1
View File
@@ -254,7 +254,7 @@ func resolveRemoteCDP(remoteURL string) (string, error) {
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return "", fmt.Errorf("/json/version returned HTTP %d", resp.StatusCode)
return "", fmt.Errorf("query /json/version at %s returned HTTP %d", versionURL, resp.StatusCode)
}
var ver struct {