mirror of
https://github.com/debpalash/VoiceStudio.git
synced 2026-12-04 01:18:16 +00:00
The CLI's three request helpers parsed \--api\ and then always opened \http.client.HTTPConnection(host, port or 80)\, so an https endpoint got the multipart video, the transcript, the translation request and the progress stream over plaintext HTTP port 80, and a TLS-only backend could not be reached at all. One \_connection()\ helper now picks HTTPConnection or HTTPSConnection from the scheme, defaults the port to 80/443, keeps an explicit port, and refuses a non-http(s) scheme instead of downgrading it. Plain http LAN and Tailscale backends behave exactly as before, and tests/test_omnivoice_dub_cli.py pins each case. The test resolves \omnivoice.cli.dub\ per test with \importlib.import_module\, so it uses the current entry in sys.modules rather than a package attribute that another test may have replaced.