mirror of
https://github.com/openziti/zrok.git
synced 2025-08-09 16:15:04 +02:00
strip any trailing slashes on api endpoint
This commit is contained in:
@ -72,7 +72,7 @@ class Root:
|
|||||||
apiEndpoint = self.env.ApiEndpoint
|
apiEndpoint = self.env.ApiEndpoint
|
||||||
frm = "env"
|
frm = "env"
|
||||||
|
|
||||||
return ApiEndpoint(apiEndpoint, frm)
|
return ApiEndpoint(apiEndpoint.rstrip("/"), frm)
|
||||||
|
|
||||||
def IsEnabled(self) -> bool:
|
def IsEnabled(self) -> bool:
|
||||||
return self.env != Environment()
|
return self.env != Environment()
|
||||||
|
Reference in New Issue
Block a user