# HG changeset patch # User Daniel Dourvaris # Date 2019-12-27 12:35:20 # Node ID 578955767d0965754d767abc54b9b2d96ea0dd15 # Parent 3d2cea78b87f9a01e8bbfa50411d2422fcc95b9f rcextensions: helpers fix, non json data should use params. diff --git a/rhodecode/config/rcextensions/helpers/http_call.py b/rhodecode/config/rcextensions/helpers/http_call.py --- a/rhodecode/config/rcextensions/helpers/http_call.py +++ b/rhodecode/config/rcextensions/helpers/http_call.py @@ -41,7 +41,7 @@ def run(url, json_data=None, params=None if json_data: resp = method_caller(url, json=json_data, timeout=timeout) elif params: - resp = method_caller(url, params=json_data, timeout=timeout) + resp = method_caller(url, params=params, timeout=timeout) else: raise AttributeError('Provide json_data= or params= in function call') resp.raise_for_status() # raise exception on a failed request