MDL-57161 search: Set the correct HTTP header

All credit goes to Test Valley School
This commit is contained in:
David Monllao
2016-12-06 10:00:07 +08:00
committed by Simey Lameze
parent b182239f21
commit dcd408b81f
+1 -1
View File
@@ -1224,7 +1224,7 @@ class engine extends \core_search\engine {
if (!empty($this->config->server_username) && !empty($this->config->server_password)) {
$authorization = $this->config->server_username . ':' . $this->config->server_password;
$this->curl->setHeader('Authorization', 'Basic ' . base64_encode($authorization));
$this->curl->setHeader('Authorization: Basic ' . base64_encode($authorization));
}
return $this->curl;