URL fixes if using unix_socket
buildbot/multibuild_parent Build done. Details
buildbot/travis_bionic Build done. Details

- according to https://github.com/ansible/ansible/pull/43560 where
  unix_socket was implemented, you're supposed to use http://localhost/
  as hostname when using unix_socket
This commit is contained in:
Peter Šurda 2024-04-22 15:32:36 +08:00
parent fb178b36cd
commit 00ca2d2133
Signed by: PeterSurda
GPG Key ID: 3E47497CF67ABB95
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ else:
def make_headers(host, api_key, unix_socket=None, device=None):
url = '{}{}{}{}'.format(
host if not unix_socket else "",
host,
SYNCTHING_API_URI,
'/' if device else '',
device if device else '')