Skip to content

Commit c3b233b

Browse files
bscheshirworkDavertMik
authored andcommitted
add missing / to relative url from config (#4796)
1 parent e04f5a1 commit c3b233b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Codeception/Module/REST.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ protected function execute($method, $url, $parameters = [], $files = [])
569569
// allow full url to be requested
570570
if (strpos($url, '://') === false) {
571571
$url = $this->config['url'] . $url;
572+
if ($this->config['url'] && strpos($url, '://') === false && $this->config['url'][0] !== '/') {
573+
$url = '/' . $url;
574+
}
572575
}
573576

574577
$this->params = $parameters;

0 commit comments

Comments
 (0)