Files
DeryFerd e82c210d9e fix(cli): honour the --api scheme in omnivoice-dub
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.
2026-11-30 13:32:31 +07:00
..