Skip to content
Snippets Groups Projects
Commit e6507507 authored by Demian Katz's avatar Demian Katz
Browse files

Smarter client generation (use host URL to avoid proxying of localhost traffic).

parent 49c20cac
No related merge requests found
...@@ -172,7 +172,7 @@ class Solr implements ServiceLocatorAwareInterface, ...@@ -172,7 +172,7 @@ class Solr implements ServiceLocatorAwareInterface,
// We don't actually need to save the HTTP service; let's just use it to // We don't actually need to save the HTTP service; let's just use it to
// create a client. // create a client.
$this->client = $service->createClient( $this->client = $service->createClient(
null, \Zend\Http\Request::METHOD_GET, $this->getHttpTimeout() $this->host, \Zend\Http\Request::METHOD_GET, $this->getHttpTimeout()
); );
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment