MDL-57161 search: Set the correct HTTP header
All credit goes to Test Valley School
This commit is contained in:
committed by
Simey Lameze
parent
e6cb76dfbb
commit
c720384758
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user