diff --git a/src/Jira/Api.php b/src/Jira/Api.php index 2c642a5..cb8e8fb 100644 --- a/src/Jira/Api.php +++ b/src/Jira/Api.php @@ -72,6 +72,9 @@ public function __construct( AuthenticationInterface $authentication, ClientInterface $client = null ) { + //Regular expression to remove trailing slash + $endpoint = preg_replace('{/$}', '', $endpoint); + $this->setEndPoint($endpoint); $this->authentication = $authentication;