Skip to content

Commit a5fcada

Browse files
committed
Merge branch '2.6' into 3.0
2 parents c03f141 + 753536c commit a5fcada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Module/REST.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ protected function execute($method, $url, $parameters = [], $files = [])
590590
// allow full url to be requested
591591
if (strpos($url, '://') === false) {
592592
$url = $this->config['url'] . $url;
593-
if ($this->config['url'] && strpos($url, '://') === false && $this->config['url'][0] !== '/') {
593+
if ($this->config['url'] && strpos($url, '://') === false && strpos($url, '/') !== 0 && $this->config['url'][0] !== '/') {
594594
$url = '/' . $url;
595595
}
596596
}

0 commit comments

Comments
 (0)