lib/Elastica/Transport/Http.php 1 location
|
@@ 56-60 (lines=5) @@
|
53 |
|
// If url is set, url is taken. Otherwise port, host and path |
54 |
|
$url = $connection->hasConfig('url') ? $connection->getConfig('url') : ''; |
55 |
|
|
56 |
|
if (!empty($url)) { |
57 |
|
$baseUri = $url; |
58 |
|
} else { |
59 |
|
$baseUri = $this->_scheme.'://'.$connection->getHost().':'.$connection->getPort().'/'.$connection->getPath(); |
60 |
|
} |
61 |
|
|
62 |
|
$requestPath = $request->getPath(); |
63 |
|
if (!Util::isDateMathEscaped($requestPath)) { |
lib/Elastica/Transport/HttpAdapter.php 1 location
|
@@ 144-148 (lines=5) @@
|
141 |
|
{ |
142 |
|
$url = $connection->hasConfig('url') ? $connection->getConfig('url') : ''; |
143 |
|
|
144 |
|
if (!empty($url)) { |
145 |
|
$baseUri = $url; |
146 |
|
} else { |
147 |
|
$baseUri = $this->_scheme.'://'.$connection->getHost().':'.$connection->getPort().'/'.$connection->getPath(); |
148 |
|
} |
149 |
|
|
150 |
|
$requestPath = $request->getPath(); |
151 |
|
if (!Util::isDateMathEscaped($requestPath)) { |