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 09:52:30 +08:00
committed by Simey Lameze
parent e6cb76dfbb
commit c720384758
+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;