Remove X-Query, X-Filters, and X-QueryFields headers from being set in test environments
This commit is contained in:
parent
c6c3d3c3ab
commit
e4914a6778
|
@ -695,7 +695,7 @@ abstract class SolrIndex extends SearchIndex
|
|||
$params['qf'] = $qf;
|
||||
}
|
||||
|
||||
if (!headers_sent() && !Director::isLive()) {
|
||||
if (!headers_sent() && Director::isDev()) {
|
||||
if ($q) {
|
||||
header('X-Query: '.implode(' ', $q));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue