Skip to content

Commit c720384

Browse files
David Monllaolameze
David Monllao
authored andcommitted
MDL-57161 search: Set the correct HTTP header
All credit goes to Test Valley School
1 parent e6cb76d commit c720384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search/engine/solr/classes/engine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ public function get_curl_object() {
12241224

12251225
if (!empty($this->config->server_username) && !empty($this->config->server_password)) {
12261226
$authorization = $this->config->server_username . ':' . $this->config->server_password;
1227-
$this->curl->setHeader('Authorization', 'Basic ' . base64_encode($authorization));
1227+
$this->curl->setHeader('Authorization: Basic ' . base64_encode($authorization));
12281228
}
12291229

12301230
return $this->curl;

0 commit comments

Comments
 (0)