Skip to content

Commit

Permalink
Handle the URL scheme based on TLS
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Balazs <[email protected]>
  • Loading branch information
milanbalazs committed Sep 19, 2024
1 parent a6c5522 commit ced64e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions podman/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,10 @@ def _request(

path = path.lstrip("/") # leading / makes urljoin crazy...

# TODO should we have an option for HTTPS support?
scheme = "https" if kwargs.get("verify", None) else "http"
# Build URL for operation from base_url
uri = urllib.parse.ParseResult(
# TODO: Does it make sense: "https" if kwargs.get("verify", None) else "http" ?
"http",
scheme,
self.base_url.netloc,
urllib.parse.urljoin(path_prefix, path),
self.base_url.params,
Expand Down

0 comments on commit ced64e6

Please sign in to comment.