Merge branch 'MDL-57161-master' of git://github.com/lameze/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 6 Dec 2016 05:06:39 +0000 (13:06 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 6 Dec 2016 05:06:39 +0000 (13:06 +0800)
search/engine/solr/classes/engine.php

index 57fef71..50042c3 100644 (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('AuthorizationBasic ' . base64_encode($authorization));
         }
 
         return $this->curl;