Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehudson committed Jul 7, 2022
1 parent 016c21c commit 46c07e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Thrift/Transport/THttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class THttpClient extends TTransport {
* @param string $uri
*/
public function __construct($host, $port=80, $uri='', $scheme = 'http') {
if ((TStringFuncFactory::create()->strlen($uri) > 0) && ($uri{0} != '/')) {
if ((TStringFuncFactory::create()->strlen($uri) > 0) && (substr($uri, 0, 1) != '/')) {
$uri = '/'.$uri;
}
$this->scheme_ = $scheme;
Expand Down

0 comments on commit 46c07e9

Please sign in to comment.