Skip to content

Commit d1c812f

Browse files
committed
Merge branch 'fix/port-curl-missing' into 7.4
2 parents 0284ac2 + 125594b commit d1c812f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## Release 7.5.1
2+
3+
- Added `ClientBuilder::includePortInHostHeader()` to add the
4+
`port` in the `Host` header. This fixes [#993](https://github.com/elastic/elasticsearch-php/issues/993).
5+
By default the `port` is not included in the `Host` header.
6+
[#997](https://github.com/elastic/elasticsearch-php/pull/997)
7+
- Replace abandoned packages: ringphp, streams and phpstan-shim
8+
[#996](https://github.com/elastic/elasticsearch-php/pull/996)
9+
- Fixed gzip compression when setting Cloud Id
10+
[#986](https://github.com/elastic/elasticsearch-php/pull/986)
11+
112
## Release 7.5.0
213

314
- Fixed `Client::extractArgument` iterable casting to array;

src/Elasticsearch/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
class Client
3434
{
35-
const VERSION = '7.5.0';
35+
const VERSION = '7.5.1';
3636

3737
/**
3838
* @var Transport

src/Elasticsearch/Connections/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public function logRequestFail(array $request, array $response, \Exception $exce
422422
array(
423423
'method' => $request['http_method'],
424424
'uri' => $response['effective_url'],
425-
'port' => $response['transfer_stats']['primary_port'],
425+
'port' => $response['transfer_stats']['primary_port'] ?? '',
426426
'headers' => $request['headers'],
427427
'HTTP code' => $response['status'],
428428
'duration' => $response['transfer_stats']['total_time'],

0 commit comments

Comments
 (0)