Basic auth fix

This commit is contained in:
Evan Seguin
2012-08-10 10:51:14 -07:00
parent 2cd0780c5b
commit 2ca6703c69

View File

@@ -7,7 +7,7 @@ class BasicAuth extends HeaderAuth {
function __construct($username, $password) {
$headerValue = $username . ":" . $password;
$this->header = "Authorization: " . base64_encode($headerValue);
$this->header = "Authorization: Basic " . base64_encode($headerValue);
}
public function handleHeader() {