protected function AcquiaSearchSolrService::addUserAgentHeader in Acquia Connector 7.3
Builds user-agent header.
Return value
array User-agent header.
1 call to AcquiaSearchSolrService::addUserAgentHeader()
- AcquiaSearchSolrService::prepareRequest in acquia_search/
includes/ AcquiaSearchSolrService.php - Prepares request before send.
File
- acquia_search/
includes/ AcquiaSearchSolrService.php, line 118
Class
- AcquiaSearchSolrService
- Class AcquiaSearchSolrService.
Code
protected function addUserAgentHeader() {
$acquia_search_version = variable_get('acquia_search_solr_version', DRUPAL_CORE_COMPATIBILITY);
$agent = sprintf('acquia_search_solr/%s', $acquia_search_version);
return [
'User-Agent' => $agent,
];
}