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:
parent
8e7d76c60d
commit
c2749c8151
|
|
@ -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->(@_);
|
||||
|
|
|
|||
Loading…
Reference in New Issue