Merge branch 'MDL-57161-31' of git://github.com/lameze/moodle into MOODLE_31_STABLE

This commit is contained in:
Andrew Nicols
2016-12-06 13:11:13 +08:00
+1 -1
View File
@@ -1220,7 +1220,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;