You are here

protected function SearchApiAcquiaSearchConnectionV3::addUserAgentHeader in Acquia Search for Search API 7.2

Builds user-agent header.

Return value

array User-agent header.

1 call to SearchApiAcquiaSearchConnectionV3::addUserAgentHeader()
SearchApiAcquiaSearchConnectionV3::prepareRequest in includes/v3/SearchApiAcquiaSearchConnectionV3.php
Prepares request before send.

File

includes/v3/SearchApiAcquiaSearchConnectionV3.php, line 124

Class

SearchApiAcquiaSearchConnectionV3
Starting point for the Solr API. Represents a Solr server resource and has methods for pinging, adding, deleting, committing, optimizing and searching.

Code

protected function addUserAgentHeader() {
  $agent = 'search_api_acquia/' . variable_get('search_api_acquia_version', '7.x');
  return [
    'User-Agent' => $agent,
  ];
}