From a4c6de92026ff38342e61bf8654c51cb2396a172 Mon Sep 17 00:00:00 2001 From: vsc-m Date: Thu, 26 Sep 2024 14:01:32 +0100 Subject: [PATCH] CP-2395 Undo removal of url encoding logic --- .../src/thousandeyes_sdk/core/api_client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py b/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py index 3c65d8dd..6e640896 100644 --- a/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py +++ b/thousandeyes-sdk-core/src/thousandeyes_sdk/core/api_client.py @@ -178,6 +178,12 @@ class ApiClient: path_params, collection_formats ) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe='') + ) # post parameters if post_params or files: