Bug 38345: Remove warnings

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9f15e5911e)
Signed-off-by: Jacob O'Mara <jacob.omara@openfifth.co.uk>
This commit is contained in:
Jonathan Druart 2025-12-16 12:38:02 +01:00 committed by Jacob O'Mara
parent 8e7d76c60d
commit c2749c8151
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ use Search::Elasticsearch::Role::Cxn;
*Search::Elasticsearch::Role::Cxn::process_response = sub {
my ( $self, $params, $code, $msg, $body, $headers ) = @_;
if ( $headers && $headers->{'x-elastic-product'} ne 'Elasticsearch' ) {
unless ( $headers && $headers->{'x-elastic-product'} && $headers->{'x-elastic-product'} eq 'Elasticsearch' ) {
$Search::Elasticsearch::Role::Cxn::PRODUCT_CHECK_VALUE = '';
}
$orig_sub->(@_);