Skip to content

Commit

Permalink
MDL-57161 search: Set the correct HTTP header
Browse files Browse the repository at this point in the history
All credit goes to Test Valley School
  • Loading branch information
David Monllao authored and lameze committed Dec 6, 2016
1 parent e6cb76d commit c720384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/engine/solr/classes/engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ public function get_curl_object() {

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;
Expand Down

0 comments on commit c720384

Please sign in to comment.