Skip to content

Commit 5475cd9

Browse files
Proctajpastoor
authored andcommitted
Fixed trailing slash in URL
Added regular expression to remove trailing slash if included in URL. Api::__construct
1 parent e13aba0 commit 5475cd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Jira/Api.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ public function __construct(
7272
AuthenticationInterface $authentication,
7373
ClientInterface $client = null
7474
) {
75+
//Regular expression to remove trailing slash
76+
$endpoint = preg_replace('{/$}', '', $endpoint);
77+
7578
$this->setEndPoint($endpoint);
7679
$this->authentication = $authentication;
7780

0 commit comments

Comments
 (0)