From 4daf99c49e108430dc4475b2c62b58b622ce5a9f Mon Sep 17 00:00:00 2001 From: Cam Date: Wed, 18 Oct 2023 15:33:31 -0500 Subject: [PATCH] strip any trailing slashes on api endpoint --- sdk/python/sdk/zrok/zrok/environment/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/sdk/zrok/zrok/environment/root.py b/sdk/python/sdk/zrok/zrok/environment/root.py index a9df8946..242ef51a 100644 --- a/sdk/python/sdk/zrok/zrok/environment/root.py +++ b/sdk/python/sdk/zrok/zrok/environment/root.py @@ -72,7 +72,7 @@ class Root: apiEndpoint = self.env.ApiEndpoint frm = "env" - return ApiEndpoint(apiEndpoint, frm) + return ApiEndpoint(apiEndpoint.rstrip("/"), frm) def IsEnabled(self) -> bool: return self.env != Environment()