We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec7810a commit 5a15755Copy full SHA for 5a15755
lib/Search/Elasticsearch/Role/Cxn.pm
@@ -343,7 +343,7 @@ sub process_response {
343
344
# Product check
345
if ( $code >= 200 and $code < 300 ) {
346
- unless ($headers->{'X-Elastic-Product'} eq 'Elasticsearch' ) {
+ if (!defined $headers->{'X-Elastic-Product'} || $headers->{'X-Elastic-Product'} eq 'Elasticsearch') {
347
throw( "ProductCheck", "The client noticed that the server is not Elasticsearch and we do not support this unknown product" );
348
}
349
0 commit comments