Skip to content

Commit 387280d

Browse files
authored
Update Blockchain.php
Fix for getting a "not found" error when using the library. The cause is a missing slash in the called url after the port.
1 parent b4f55a4 commit 387280d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Blockchain.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public function setTimeout($timeout) {
8282
}
8383

8484
public function setServiceUrl($service_url) {
85+
if (substr($service_url, -1, 1) != '/'){
86+
$service_url = $service_url . '/';
87+
}
8588
$this->service_url = $service_url;
8689
}
8790

0 commit comments

Comments
 (0)