Show More
@@ -21,6 +21,7 b' Utilities library for RhodeCode' | |||
|
21 | 21 | """ |
|
22 | 22 | |
|
23 | 23 | import datetime |
|
24 | ||
|
24 | 25 | import decorator |
|
25 | 26 | import logging |
|
26 | 27 | import os |
@@ -31,6 +32,7 b' import socket' | |||
|
31 | 32 | import tempfile |
|
32 | 33 | import traceback |
|
33 | 34 | import tarfile |
|
35 | import urllib.parse | |
|
34 | 36 | import warnings |
|
35 | 37 | from functools import wraps |
|
36 | 38 | from os.path import join as jn |
@@ -849,7 +851,7 b' def call_service_api(ini_path, payload):' | |||
|
849 | 851 | 'auth_token': config.get('app:main', 'app.service_api.token') |
|
850 | 852 | }) |
|
851 | 853 | |
|
852 |
response = CurlSession().post( |
|
|
854 | response = CurlSession().post(urllib.parse.urljoin(host, api_url), json.dumps(payload)) | |
|
853 | 855 | |
|
854 | 856 | if response.status_code != 200: |
|
855 | 857 | raise Exception("Service API responded with error") |
General Comments 0
You need to be logged in to leave comments.
Login now